mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 13:39:27 -02:30
Merge pull request #1569 from ghjm/ansible_26_venv
Use system Python interpreter rather than SCL Python for Ansible venv
This commit is contained in:
23
Makefile
23
Makefile
@@ -249,7 +249,19 @@ rebase:
|
|||||||
push:
|
push:
|
||||||
git push origin master
|
git push origin master
|
||||||
|
|
||||||
virtualenv:
|
virtualenv: virtualenv_ansible virtualenv_tower
|
||||||
|
|
||||||
|
virtualenv_ansible:
|
||||||
|
if [ "$(VENV_BASE)" ]; then \
|
||||||
|
if [ ! -d "$(VENV_BASE)" ]; then \
|
||||||
|
mkdir $(VENV_BASE); \
|
||||||
|
fi; \
|
||||||
|
if [ ! -d "$(VENV_BASE)/ansible" ]; then \
|
||||||
|
virtualenv --system-site-packages $(VENV_BASE)/ansible; \
|
||||||
|
fi; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
virtualenv_tower:
|
||||||
if [ "$(VENV_BASE)" ]; then \
|
if [ "$(VENV_BASE)" ]; then \
|
||||||
if [ ! -d "$(VENV_BASE)" ]; then \
|
if [ ! -d "$(VENV_BASE)" ]; then \
|
||||||
mkdir $(VENV_BASE); \
|
mkdir $(VENV_BASE); \
|
||||||
@@ -257,12 +269,9 @@ virtualenv:
|
|||||||
if [ ! -d "$(VENV_BASE)/tower" ]; then \
|
if [ ! -d "$(VENV_BASE)/tower" ]; then \
|
||||||
virtualenv --system-site-packages $(VENV_BASE)/tower; \
|
virtualenv --system-site-packages $(VENV_BASE)/tower; \
|
||||||
fi; \
|
fi; \
|
||||||
if [ ! -d "$(VENV_BASE)/ansible" ]; then \
|
|
||||||
virtualenv --system-site-packages $(VENV_BASE)/ansible; \
|
|
||||||
fi; \
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
requirements_ansible:
|
requirements_ansible: virtualenv_ansible
|
||||||
if [ "$(VENV_BASE)" ]; then \
|
if [ "$(VENV_BASE)" ]; then \
|
||||||
. $(VENV_BASE)/ansible/bin/activate; \
|
. $(VENV_BASE)/ansible/bin/activate; \
|
||||||
$(VENV_BASE)/ansible/bin/pip install -U pip==8.1.1; \
|
$(VENV_BASE)/ansible/bin/pip install -U pip==8.1.1; \
|
||||||
@@ -273,7 +282,7 @@ requirements_ansible:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Install third-party requirements needed for Tower's environment.
|
# Install third-party requirements needed for Tower's environment.
|
||||||
requirements_tower:
|
requirements_tower: virtualenv_tower
|
||||||
if [ "$(VENV_BASE)" ]; then \
|
if [ "$(VENV_BASE)" ]; then \
|
||||||
. $(VENV_BASE)/tower/bin/activate; \
|
. $(VENV_BASE)/tower/bin/activate; \
|
||||||
$(VENV_BASE)/tower/bin/pip install -U pip==8.1.1; \
|
$(VENV_BASE)/tower/bin/pip install -U pip==8.1.1; \
|
||||||
@@ -299,7 +308,7 @@ requirements_jenkins:
|
|||||||
fi && \
|
fi && \
|
||||||
$(NPM_BIN) install csslint jshint
|
$(NPM_BIN) install csslint jshint
|
||||||
|
|
||||||
requirements: virtualenv requirements_ansible requirements_tower
|
requirements: requirements_ansible requirements_tower
|
||||||
|
|
||||||
requirements_dev: requirements requirements_tower_dev
|
requirements_dev: requirements requirements_tower_dev
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user