diff options
| author | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-08-06 17:52:12 +0900 |
|---|---|---|
| committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-08-06 21:24:49 +0900 |
| commit | 4d7a0a92de20cf129dbb40c419e7362de447600c (patch) | |
| tree | 76d3fe3dce1ebe1cd1adbf8abd33eb4922cbcf03 | |
| parent | 10faf34408b224bd8b2cff7fe2a7c8d43763df25 (diff) | |
| download | pygerrit-4d7a0a92de20cf129dbb40c419e7362de447600c.tar.gz | |
Separate environment intialisation into its own build target
Initialisation of the virtualenv is now a separate target, which
is a dependency of the package installation target.
Change-Id: I37cc6a13bb3874439393b75b8926f2288700d692
| -rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -50,12 +50,14 @@ unittests: envsetup source ./pygerritenv/bin/activate && \ python unittests.py" -envsetup: +envsetup: envinit bash -c "\ - [ -e ./pygerritenv/bin/activate ] || virtualenv ./pygerritenv && \ source ./pygerritenv/bin/activate && \ pip install --upgrade -r requirements.txt -r test_requirements.txt" +envinit: + bash -c "[ -e ./pygerritenv/bin/activate ] || virtualenv ./pygerritenv" + clean: @find . -type f -name "*.pyc" -exec rm -f {} \; @rm -rf pygerritenv pygerrit.egg-info build dist |
