mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-16 17:10:32 +03:00
The Makefile can run with both Python 2 and 3.
This commit is contained in:
parent
8a1fa9d3a0
commit
a30e461038
2
Makefile
2
Makefile
|
@ -19,7 +19,7 @@
|
||||||
# make check # this requires setting up a test database with the correct user
|
# make check # this requires setting up a test database with the correct user
|
||||||
|
|
||||||
PYTHON := python$(PYTHON_VERSION)
|
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)
|
BUILD_DIR = $(shell pwd)/build/lib.$(PYTHON_VERSION)
|
||||||
ENV_DIR = $(shell pwd)/env/py-$(PYTHON_VERSION)
|
ENV_DIR = $(shell pwd)/env/py-$(PYTHON_VERSION)
|
||||||
ENV_BIN = $(ENV_DIR)/bin
|
ENV_BIN = $(ENV_DIR)/bin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user