Commit 9d8e0e8a authored by sim's avatar sim

[FIX] Error when bootstrapping virtualenv

parent f711b098
...@@ -8,9 +8,7 @@ TARG=dev ...@@ -8,9 +8,7 @@ TARG=dev
PIPENV_ARGS=--dev PIPENV_ARGS=--dev
endif endif
VENV=$(shell pipenv --venv) PY_VERSION='import sys; v=sys.version_info; print("{0}.{1}".format(*v))'
PYTHON=$(shell pipenv --py)
PY_VERSION=$(shell $(PYTHON) -c 'import sys; v=sys.version_info; print("{0}.{1}".format(*v))')
gargantext: venv conf migrate gargantext: venv conf migrate
...@@ -19,7 +17,7 @@ venv: envs ...@@ -19,7 +17,7 @@ venv: envs
pipenv install $(PIPENV_ARGS) pipenv install $(PIPENV_ARGS)
@# Put current directory in python path to be able to import gargantext @# Put current directory in python path to be able to import gargantext
@# from scripts in sub-directories (eg. alembic revisions) @# from scripts in sub-directories (eg. alembic revisions)
@pwd > $(VENV)/lib/python$(PY_VERSION)/site-packages/gargantext.pth @pwd > $$(pipenv --venv)/lib/python$$($$(pipenv --py) -c $(PY_VERSION))/site-packages/gargantext.pth
@echo @echo
envs: envs:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment