Point pip at the existing wheels directory

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=35
This commit is contained in:
Steve Kowalik 2025-01-08 04:04:01 +00:00 committed by Git OBS Bridge
parent 5cb0ad08a4
commit ae3d2ee8ff
2 changed files with 4 additions and 6 deletions

View File

@ -1,9 +1,9 @@
-------------------------------------------------------------------
Wed Jan 8 03:47:56 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
Wed Jan 8 04:02:24 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Drop patch skip-pip-install.patch:
* Create a pip links directory with a wheel of setuptools, since that
is the only requirement for pip install with the current version of
* Point pip to the directory that setuptools-wheel uses, since that is
the only requirement for pip install with the current version of
setuptools.
- Remove unneeded Requires, limit them appropiately.
- Switch to pyproject macros.

View File

@ -61,10 +61,8 @@ support for (deprecated) optparse objects, too.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
mkdir wheels
cp $(ls -1 /usr/lib/python3.*/wheels/setuptools*whl | head -n 1) wheels
export PIP_NO_INDEX=1
export PIP_FIND_LINKS=$(pwd)/wheels
export PIP_FIND_LINKS=$(ls -1 /usr/lib/python3.*/wheels | head -n 1)
%pytest
%post