[issue42856] ensurepip: add configure --with-wheel-pkg-dir=PATH to get wheel packages from a system directory
Matej Cepl
report at bugs.python.org
Wed Jan 13 09:58:19 EST 2021
Matej Cepl <mcepl at cepl.eu> added the comment:
We (SUSE) have updated versions of the wheels as special Sources, and then this in the %prep stage of our SPEC file:
# Replace bundled wheels with the updates ones
rm -v Lib/ensurepip/_bundled/*.whl
cp -v %{SOURCE20} %{SOURCE21} Lib/ensurepip/_bundled/
STVER=$(basename %{SOURCE20}|cut -d- -f2)
PIPVER=$(basename %{SOURCE21}|cut -d- -f2)
sed -E -i -e "s/^(\s*_SETUPTOOLS_VERSION\s+=\s+)\"[0-9.]+\"/\1\"${STVER}\"/" \
-e "s/^(\s*_PIP_VERSION\s+=\s+)\"[0-9.]+\"/\1\"${PIPVER}\"/" \
Lib/ensurepip/__init__.py
A bit of manual work required, but it doesn't lead to so incredible convoluted constructs as I see in Fedora (nothing against it, but our build system is already convoluted enough).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42856>
_______________________________________
More information about the Python-bugs-list
mailing list