mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 01:47:31 -02:30
Merge pull request #2782 from ghjm/cffi_whl_fix
Build cffi from source during make requirements
This commit is contained in:
12
Makefile
12
Makefile
@@ -21,6 +21,10 @@ CELERY_SCHEDULE_FILE ?= /celerybeat-schedule
|
|||||||
|
|
||||||
CLIENT_TEST_DIR ?= build_test
|
CLIENT_TEST_DIR ?= build_test
|
||||||
|
|
||||||
|
# Python packages to install only from source (not from binary wheels)
|
||||||
|
# Comma separated list
|
||||||
|
SRC_ONLY_PKGS ?= cffi
|
||||||
|
|
||||||
# Determine appropriate shasum command
|
# Determine appropriate shasum command
|
||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
ifeq ($(UNAME_S),Linux)
|
ifeq ($(UNAME_S),Linux)
|
||||||
@@ -279,18 +283,18 @@ virtualenv_tower:
|
|||||||
requirements_ansible: virtualenv_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 -r requirements/requirements_ansible.txt ;\
|
$(VENV_BASE)/ansible/bin/pip install --no-binary $(SRC_ONLY_PKGS) -r requirements/requirements_ansible.txt ;\
|
||||||
else \
|
else \
|
||||||
pip install -r requirements/requirements_ansible.txt ; \
|
pip install --no-binary $(SRC_ONLY_PKGS) -r requirements/requirements_ansible.txt ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install third-party requirements needed for Tower's environment.
|
# Install third-party requirements needed for Tower's environment.
|
||||||
requirements_tower: virtualenv_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 -r requirements/requirements.txt ;\
|
$(VENV_BASE)/tower/bin/pip install --no-binary $(SRC_ONLY_PKGS) -r requirements/requirements.txt ;\
|
||||||
else \
|
else \
|
||||||
pip install -r requirements/requirements.txt ; \
|
pip install --no-binary $(SRC_ONLY_PKGS) -r requirements/requirements.txt ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
requirements_tower_dev:
|
requirements_tower_dev:
|
||||||
|
|||||||
Reference in New Issue
Block a user