mintel / build-harness

🤖Collection of Makefiles to facilitate building Python/Golang projects, Dockerfiles, and more
Apache License 2.0
2 stars 6 forks source link

Respect existing venv #40

Closed charlieparkes closed 4 years ago

charlieparkes commented 4 years ago

Change made due to this error:

Found python: /home/travis/virtualenv/python3.6.7/bin/python
Found pipenv: /home/travis/virtualenv/python3.6.7/bin/pipenv

PIPENV_VENV_IN_PROJECT=1 /home/travis/virtualenv/python3.6.7/bin/pipenv install --dev --deploy

Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.

Installing dependencies from Pipfile.lock (2b436d)…
     ================================ 90/90 — 00:00:54

touch /home/travis/build/mintel/lpipe/.venv/bin/activate
touch: cannot touch '/home/travis/build/mintel/lpipe/.venv/bin/activate': No such file or directory
/home/travis/build/mintel/lpipe/build-harness/modules/python/Makefile.env:56: recipe for target '/home/travis/build/mintel/lpipe/.venv/bin/activate' failed

pipenv/debug

PYTHON=/home/travis/virtualenv/python3.6.7/bin/python
PY_PIPENV=/home/travis/virtualenv/python3.6.7/bin/pipenv
WORKON_HOME=
VIRTUAL_ENV=/home/travis/virtualenv/python3.6.7
PIPENV=PIPENV_VENV_IN_PROJECT=1 /home/travis/virtualenv/python3.6.7/bin/pipenv
PIPENV_PIPFILE_DIR=/home/travis/build/mintel/lpipe
PY_VENV=/home/travis/build/mintel/lpipe/.venv
PIPENV_RUN=PIPENV_VENV_IN_PROJECT=1 /home/travis/virtualenv/python3.6.7/bin/pipenv run
charlieparkes commented 4 years ago

ignore the failing build. Now that travisCI is enabled its running but has never been setup for us.