summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2013-08-06 17:52:12 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2013-08-06 21:24:49 +0900
commit4d7a0a92de20cf129dbb40c419e7362de447600c (patch)
tree76d3fe3dce1ebe1cd1adbf8abd33eb4922cbcf03
parent10faf34408b224bd8b2cff7fe2a7c8d43763df25 (diff)
downloadpygerrit-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--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a920c28..456f48d 100644
--- a/Makefile
+++ b/Makefile
@@ -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