summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-12 16:20:02 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-12 16:20:02 +0000
commita30e461038dba6439980175ca6bc546c96551814 (patch)
tree0b02798e68e3be5e6a144776749911dcf25143ab
parent8a1fa9d3a0c3fe87f3594b5cd75adb6f729ee868 (diff)
downloadpsycopg2-a30e461038dba6439980175ca6bc546c96551814.tar.gz
The Makefile can run with both Python 2 and 3.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e73b5f6..9ecf15f 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@
# make check # this requires setting up a test database with the correct user
PYTHON := python$(PYTHON_VERSION)
-PYTHON_VERSION ?= $(shell $(PYTHON) -c 'import sys; print "%d.%d" % sys.version_info[:2]')
+PYTHON_VERSION ?= $(shell $(PYTHON) -c 'import sys; print ("%d.%d" % sys.version_info[:2])')
BUILD_DIR = $(shell pwd)/build/lib.$(PYTHON_VERSION)
ENV_DIR = $(shell pwd)/env/py-$(PYTHON_VERSION)
ENV_BIN = $(ENV_DIR)/bin