Skip to content

Commit

Permalink
Pass --always-copy to virtualenv (elastic#3082)
Browse files Browse the repository at this point in the history
virtualenv creates symlinks so `make setup` fails when ran on a network mounted
fs. `--always-copy` copies files to the destination dir rather than symlinking.
  • Loading branch information
phenomenes authored and suraj-soni committed Dec 15, 2016
1 parent a1f1a17 commit f877e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ load-tests:
# Sets up the virtual python environment
.PHONY: python-env
python-env: ${ES_BEATS}/libbeat/tests/system/requirements.txt
@test -d ${PYTHON_ENV} || virtualenv ${PYTHON_ENV}
@test -d ${PYTHON_ENV} || virtualenv --always-copy ${PYTHON_ENV}
@. ${PYTHON_ENV}/bin/activate && pip install -q --upgrade pip ; \
if [ -a ./tests/system/requirements.txt ] && [ ! ${ES_BEATS}/libbeat/tests/system/requirements.txt -ef ./tests/system/requirements.txt ] ; then \
. ${PYTHON_ENV}/bin/activate && pip install -qUr ${ES_BEATS}/libbeat/tests/system/requirements.txt -Ur ./tests/system/requirements.txt ; \
Expand Down

0 comments on commit f877e54

Please sign in to comment.