Skip to content

Commit

Permalink
Use a symlink tree
Browse files Browse the repository at this point in the history
If you symlink the entire bin/, bin/python gets all confused and thinks
it's a system python and not a virtualenv python.
  • Loading branch information
mgedmin committed Aug 24, 2018
1 parent 541743d commit c53ad77
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,24 @@ diff-cover: coverage
diff-cover coverage.xml


clean:
rm -rf bin .venv


include release.mk


bin/py.test: bin/pip
bin/py.test: | bin/pip
bin/pip install pytest mock
ln -sfr .venv/$@ $@

bin/restview: bin/pip setup.py
bin/restview: setup.py | bin/pip
bin/pip install -e .
ln -sfr .venv/$@ $@

bin/pip: .venv/bin/pip
ln -sf .venv/bin bin
bin/pip: | .venv/bin/pip
mkdir -p bin
ln -sfr .venv/$@ $@

.venv/bin/pip:
virtualenv -p $(PYTHON) .venv

0 comments on commit c53ad77

Please sign in to comment.