mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 08:56:34 +03:00
Don't require the virtualenv binary to build the docs
This commit is contained in:
parent
b241def64b
commit
c59ff6a4b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user