diff --git a/doc/Makefile b/doc/Makefile index 4b2752b0..3d9a2ad0 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -19,7 +19,7 @@ html: package src/sqlstate_errors.rst cp -r src/_build/html . src/sqlstate_errors.rst: ../psycopg/sqlstate_errors.h $(BUILD_DIR) - env/bin/python src/tools/make_sqlstate_docs.py $< > $@ + $(PYTHON) src/tools/make_sqlstate_docs.py $< > $@ $(BUILD_DIR): $(MAKE) PYTHON=$(PYTHON) -C .. package @@ -33,7 +33,7 @@ clean: rm -rf html src/sqlstate_errors.rst env: requirements.txt - virtualenv -p $(PYTHON) env + $(PYTHON) -m venv env ./env/bin/pip install -r requirements.txt echo "$$(pwd)/../build/lib.$(PYTHON_VERSION)" \ > env/lib/python$(PYTHON_VERSION)/site-packages/psycopg.pth