| |
@@ -65,6 +65,10 @@
|
| |
|
| |
%pyproject_install() %{expand:\\\
|
| |
specifier=$(ls %{_pyproject_wheeldir}/*.whl | xargs basename --multiple | sed -E 's/([^-]+)-([^-]+)-.+\\\.whl/\\\1==\\\2/')
|
| |
+ if [ -z $specifier ]; then
|
| |
+ echo 'ERROR: %%%%pyproject_install found no wheel in %%%%{_pyproject_wheeldir} %{_pyproject_wheeldir}' >&2
|
| |
+ exit 1
|
| |
+ fi
|
| |
TMPDIR="%{_pyproject_builddir}" %{__python3} -m pip install --root %{buildroot} --prefix %{_prefix} --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links %{_pyproject_wheeldir} $specifier
|
| |
if [ -d %{buildroot}%{_bindir} ]; then
|
| |
%py3_shebang_fix %{buildroot}%{_bindir}/*
|
| |
This is built on top of https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/427