build: use pip wheel to get cockpit wheel

Now that we have pip in the tasks container, this is a lot easier, and
it will allow us to drop the make-wheel script from the cockpit project.
This commit is contained in:
Allison Karlitskaya 2023-03-20 10:22:51 +01:00
parent b54f4aa607
commit e32368e56a

View file

@ -159,13 +159,7 @@ COCKPIT_PYBRIDGE_REF = main
COCKPIT_WHEEL = cockpit-0-py3-none-any.whl
$(COCKPIT_WHEEL):
# aka: pip wheel git+https://github.com/cockpit-project/cockpit.git@${COCKPIT_PYBRIDGE_REF}
rm -rf tmp/pybridge
git init tmp/pybridge
git -C tmp/pybridge remote add origin https://github.com/cockpit-project/cockpit
git -C tmp/pybridge fetch --depth=1 origin ${COCKPIT_PYBRIDGE_REF}
git -C tmp/pybridge reset --hard FETCH_HEAD
cp "$$(tmp/pybridge/tools/make-wheel)" $@
pip wheel git+https://github.com/cockpit-project/cockpit.git@${COCKPIT_PYBRIDGE_REF}
VM_DEPENDS = $(COCKPIT_WHEEL)
VM_CUSTOMIZE_FLAGS = --install $(COCKPIT_WHEEL)