summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal Gompa <ngompa13@gmail.com>2019-02-25 07:09:02 -0500
committerNeal Gompa <ngompa13@gmail.com>2019-02-25 07:09:51 -0500
commit0ca28c82c4f1f3db6e2cb55a2775b28695f68c9b (patch)
tree517ae76b13f5a99866ff050247a673d572fad79f
parent506b1012c67fd2f1de1f9c2d126bd3be07aa3664 (diff)
downloadurlgrabber-0ca28c82c4f1f3db6e2cb55a2775b28695f68c9b.tar.gz
makefile: detect modern Python 2 and 3 releases
-rw-r--r--makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/makefile b/makefile
index caa0f9e..2be1eb9 100644
--- a/makefile
+++ b/makefile
@@ -10,14 +10,14 @@ CLEANFILES = MANIFEST *~ build dist export release daily reference nonexistent_f
*.pyc urlgrabber/*.pyc scripts/*.pyc test/*.pyc test/nonexistent_file \
test/reference test/reference.part urlgrabber/*~
##############################################################################
-VERSION = $(shell $(PYTHON) -c 'import $(PY_MODULE); print $(PY_MODULE).__version__')
-DATE = $(shell $(PYTHON) -c 'import $(PY_MODULE); print $(PY_MODULE).__date__')
+VERSION = $(shell $(PYTHON) -c 'import $(PY_MODULE); print($(PY_MODULE).__version__)')
+DATE = $(shell $(PYTHON) -c 'import $(PY_MODULE); print($(PY_MODULE).__date__)')
SCM_TAG = release-$(shell echo $(VERSION) | sed -e 's/\./_/g')
-PYTHON22 = $(shell /usr/bin/which python2.2 2>/dev/null)
-PYTHON23 = $(shell /usr/bin/which python2.3 2>/dev/null)
-PYTHON24 = $(shell /usr/bin/which python2.4 2>/dev/null)
-PYTHON25 = $(shell /usr/bin/which python2.5 2>/dev/null)
-TESTPYTHONS = $(PYTHON22) $(PYTHON23) $(PYTHON24) $(PYTHON25)
+PYTHON26 = $(shell /usr/bin/which python2.6 2>/dev/null)
+PYTHON27 = $(shell /usr/bin/which python2.7 2>/dev/null)
+PYTHON36 = $(shell /usr/bin/which python3.6 2>/dev/null)
+PYTHON37 = $(shell /usr/bin/which python3.7 2>/dev/null)
+TESTPYTHONS = $(PYTHON26) $(PYTHON27) $(PYTHON36) $(PYTHON37)
##############################################################################
default: