Skip to content

Commit

Permalink
Make the wheel installation a part of the wheel build to make sure th…
Browse files Browse the repository at this point in the history
…at the wheel was correctly built.
  • Loading branch information
scoder committed Feb 24, 2022
1 parent f799889 commit cdec8e0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,15 @@ wheel_%: dist/lupa-$(VERSION).tar.gz
-e LUPA_USE_BUNDLE=$(USE_BUNDLE) \
-e WHEELHOUSE=wheelhouse_$(subst wheel_,,$@) \
quay.io/pypa/$(subst wheel_,,$@) \
bash -c 'for PYBIN in /opt/python/$(PYTHON_BUILD_VERSION)/bin; do \
$$PYBIN/python -V; \
{ time $$PYBIN/pip wheel -v -w /io/$$WHEELHOUSE /io/$< & } ; \
done; wait; \
for whl in /io/$$WHEELHOUSE/lupa-$(VERSION)-*-linux_*.whl; do auditwheel repair $$whl -w /io/$$WHEELHOUSE; done'
bash -c 'echo "Python versions: $$(ls /opt/python/ | xargs -n 100 echo)" ; \
for PYBIN in /opt/python/$(PYTHON_BUILD_VERSION)/bin; do \
$$PYBIN/python -V; \
{ time $$PYBIN/pip wheel -v -w /io/$$WHEELHOUSE /io/$< & } ; \
done; wait; \
for whl in /io/$$WHEELHOUSE/lupa-$(VERSION)-*-linux_*.whl; do auditwheel repair $$whl -w /io/$$WHEELHOUSE; done; \
for whl in /io/$$WHEELHOUSE/lupa-$(VERSION)-*-m*linux*.whl; do \
pyver=$${whl#*/lupa-$(VERSION)-}; pyver=$${pyver%%-m*}; \
echo "Installing in $${pyver}: $${whl}"; \
/opt/python/$${pyver}/bin/python -m pip install -U $${whl} && /opt/python/$${pyver}/bin/python -c "import lupa" || exit 1; \
/opt/python/$${pyver}/bin/python -m pip uninstall -y lupa; \
done; true'

0 comments on commit cdec8e0

Please sign in to comment.