Don't require the virtualenv binary to build the docs

This commit is contained in:
Daniele Varrazzo 2021-06-17 01:42:42 +01:00
parent b241def64b
commit c59ff6a4b7

View File

@ -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