mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
Update brew-srpm target to generate local requirements files
This looks pretty hairy, but essentially it's just re-invoking `pip download` with `--no-deps` so that I can record the name of the local archives that are created.
This commit is contained in:
25
Makefile
25
Makefile
@@ -723,21 +723,21 @@ rpm-build/$(SDIST_TAR_FILE): rpm-build dist/$(SDIST_TAR_FILE) tar-build/$(SETUP_
|
|||||||
|
|
||||||
rpmtar: sdist rpm-build/$(SDIST_TAR_FILE)
|
rpmtar: sdist rpm-build/$(SDIST_TAR_FILE)
|
||||||
|
|
||||||
brewrpmtar: rpm-build/python-deps.tar.gz rpmtar
|
brewrpmtar: rpm-build/python-deps.tar.gz requirements/requirements_local.txt requirements/requirements_ansible_local.txt rpmtar
|
||||||
|
|
||||||
rpm-build/python-deps.tar.gz: requirements/vendor rpm-build
|
rpm-build/python-deps.tar.gz: requirements/vendor rpm-build
|
||||||
tar czf rpm-build/python-deps.tar.gz requirements/vendor
|
tar czf rpm-build/python-deps.tar.gz requirements/vendor
|
||||||
|
|
||||||
requirements/vendor:
|
requirements/vendor:
|
||||||
pip download \
|
cat requirements/requirements.txt requirements/requirements_git.txt | pip download \
|
||||||
--no-binary=:all: \
|
--no-binary=:all: \
|
||||||
--requirement=requirements/requirements_ansible.txt \
|
--requirement=/dev/stdin \
|
||||||
--dest=$@ \
|
--dest=$@ \
|
||||||
--exists-action=i
|
--exists-action=i
|
||||||
|
|
||||||
pip download \
|
cat requirements/requirements_ansible.txt requirements/requirements_ansible_git.txt | pip download \
|
||||||
--no-binary=:all: \
|
--no-binary=:all: \
|
||||||
--requirement=requirements/requirements.txt \
|
--requirement=/dev/stdin \
|
||||||
--dest=$@ \
|
--dest=$@ \
|
||||||
--exists-action=i
|
--exists-action=i
|
||||||
|
|
||||||
@@ -747,6 +747,21 @@ requirements/vendor:
|
|||||||
--dest=$@ \
|
--dest=$@ \
|
||||||
--exists-action=i
|
--exists-action=i
|
||||||
|
|
||||||
|
requirements/requirements_local.txt:
|
||||||
|
@echo "This is going to take a while..."
|
||||||
|
pip download \
|
||||||
|
--requirement=requirements/requirements_git.txt \
|
||||||
|
--no-deps \
|
||||||
|
--exists-action=w \
|
||||||
|
--dest=requirements/vendor 2>/dev/null | sed -n 's/^\s*Saved\s*//p' > $@
|
||||||
|
|
||||||
|
requirements/requirements_ansible_local.txt:
|
||||||
|
pip download \
|
||||||
|
--requirement=requirements/requirements_ansible_git.txt \
|
||||||
|
--no-deps \
|
||||||
|
--exists-action=w \
|
||||||
|
--dest=requirements/vendor 2>/dev/null | sed -n 's/^\s*Saved\s*//p' > $@
|
||||||
|
|
||||||
rpm-build/$(RPM_NVR).src.rpm: /etc/mock/$(MOCK_CFG).cfg
|
rpm-build/$(RPM_NVR).src.rpm: /etc/mock/$(MOCK_CFG).cfg
|
||||||
$(MOCK_BIN) -r $(MOCK_CFG) --resultdir rpm-build --buildsrpm --spec rpm-build/$(NAME).spec --sources rpm-build \
|
$(MOCK_BIN) -r $(MOCK_CFG) --resultdir rpm-build --buildsrpm --spec rpm-build/$(NAME).spec --sources rpm-build \
|
||||||
--define "tower_version $(VERSION)" --define "tower_release $(RELEASE)" $(SCL_DEFINES)
|
--define "tower_version $(VERSION)" --define "tower_release $(RELEASE)" $(SCL_DEFINES)
|
||||||
|
|||||||
Reference in New Issue
Block a user