summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGraham Mainwaring <graham@mhn.org>2016-06-10 18:21:41 +0200
committerGitHub <noreply@github.com>2016-06-10 18:21:41 +0200
commitac8b8dbfb65ed15e3fc70e11ac4cc8efdcf94296 (patch)
treea8433e2f2bd95f132e60e3b99f38c729c4978815 /Makefile
parentFix system-tracking typo (diff)
downloadawx-ac8b8dbfb65ed15e3fc70e11ac4cc8efdcf94296.tar.xz
awx-ac8b8dbfb65ed15e3fc70e11ac4cc8efdcf94296.zip
Fix Openstack inventory on Ubuntu 12 (#2318)
* Update setuptools and pip when creating venvs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index aafc171594..b575007ad1 100644
--- a/Makefile
+++ b/Makefile
@@ -258,7 +258,9 @@ virtualenv_ansible:
mkdir $(VENV_BASE); \
fi; \
if [ ! -d "$(VENV_BASE)/ansible" ]; then \
- virtualenv --system-site-packages $(VENV_BASE)/ansible; \
+ virtualenv --system-site-packages --setuptools $(VENV_BASE)/ansible && \
+ $(VENV_BASE)/ansible/bin/pip install -I setuptools==23.0.0 && \
+ $(VENV_BASE)/ansible/bin/pip install -I pip==8.1.1; \
fi; \
fi
@@ -268,17 +270,17 @@ virtualenv_tower:
mkdir $(VENV_BASE); \
fi; \
if [ ! -d "$(VENV_BASE)/tower" ]; then \
- virtualenv --system-site-packages $(VENV_BASE)/tower; \
+ virtualenv --system-site-packages --setuptools $(VENV_BASE)/tower && \
+ $(VENV_BASE)/tower/bin/pip install -I setuptools==23.0.0 && \
+ $(VENV_BASE)/tower/bin/pip install -I pip==8.1.1; \
fi; \
fi
requirements_ansible: virtualenv_ansible
if [ "$(VENV_BASE)" ]; then \
. $(VENV_BASE)/ansible/bin/activate; \
- $(VENV_BASE)/ansible/bin/pip install -U pip==8.1.1; \
$(VENV_BASE)/ansible/bin/pip install -r requirements/requirements_ansible.txt ;\
else \
- pip install -U pip==8.1.1; \
pip install -r requirements/requirements_ansible.txt ; \
fi
@@ -286,10 +288,8 @@ requirements_ansible: virtualenv_ansible
requirements_tower: virtualenv_tower
if [ "$(VENV_BASE)" ]; then \
. $(VENV_BASE)/tower/bin/activate; \
- $(VENV_BASE)/tower/bin/pip install -U pip==8.1.1; \
$(VENV_BASE)/tower/bin/pip install -r requirements/requirements.txt ;\
else \
- pip install -U pip==8.1.1; \
pip install -r requirements/requirements.txt ; \
fi