summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorShane McDonald <me@shanemcd.com>2019-03-22 17:10:47 +0100
committerShane McDonald <me@shanemcd.com>2019-03-22 18:30:09 +0100
commit0eaeadad8724ee3eefca81a5302e750101f24de9 (patch)
treefc5125209c31645838e766a32a6fc87efc9a8d8a /Makefile
parentMerge pull request #3482 from chrismeyersfsu/fix-iso_ident (diff)
downloadawx-0eaeadad8724ee3eefca81a5302e750101f24de9.tar.xz
awx-0eaeadad8724ee3eefca81a5302e750101f24de9.zip
Fix python3 offline installs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7578b5aa21..22b3f893f2 100644
--- a/Makefile
+++ b/Makefile
@@ -159,8 +159,11 @@ requirements_ansible: virtualenv_ansible
$(VENV_BASE)/ansible/bin/pip uninstall --yes -r requirements/requirements_ansible_uninstall.txt
requirements_ansible_py3: virtualenv_ansible_py3
- cat requirements/requirements_ansible.txt requirements/requirements_ansible_git.txt | $(VENV_BASE)/ansible/bin/pip3 install $(PIP_OPTIONS) --no-binary $(SRC_ONLY_PKGS) --ignore-installed -r /dev/stdin
- $(VENV_BASE)/ansible/bin/pip3 install ansible # can't inherit from system ansible, it's py2
+ if [[ "$(PIP_OPTIONS)" == *"--no-index"* ]]; then \
+ cat requirements/requirements_ansible.txt requirements/requirements_ansible_local.txt | $(VENV_BASE)/ansible/bin/pip3 install $(PIP_OPTIONS) --ignore-installed -r /dev/stdin ; \
+ else \
+ cat requirements/requirements_ansible.txt requirements/requirements_ansible_git.txt | $(VENV_BASE)/ansible/bin/pip3 install $(PIP_OPTIONS) --no-binary $(SRC_ONLY_PKGS) --ignore-installed -r /dev/stdin ; \
+ fi
$(VENV_BASE)/ansible/bin/pip3 uninstall --yes -r requirements/requirements_ansible_uninstall.txt
requirements_ansible_dev: