Show a better error message when %pyproject_install finds no wheel
Fixes: https://bugzilla.redhat.com/2242452
This commit is contained in:
parent
89f2408342
commit
89c9b407fa
@ -65,6 +65,10 @@ echo $(IFS=:; echo "${pyproject_build_lib[*]}")
|
|||||||
|
|
||||||
%pyproject_install() %{expand:\\\
|
%pyproject_install() %{expand:\\\
|
||||||
specifier=$(ls %{_pyproject_wheeldir}/*.whl | xargs basename --multiple | sed -E 's/([^-]+)-([^-]+)-.+\\\.whl/\\\1==\\\2/')
|
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
|
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
|
if [ -d %{buildroot}%{_bindir} ]; then
|
||||||
%py3_shebang_fix %{buildroot}%{_bindir}/*
|
%py3_shebang_fix %{buildroot}%{_bindir}/*
|
||||||
|
@ -177,6 +177,8 @@ export HOSTNAME="rpmbuild" # to speedup tox in network-less mock, see rhbz#1856
|
|||||||
- The -L flag explicitly disables this check (which remains the default)
|
- The -L flag explicitly disables this check (which remains the default)
|
||||||
- Prevent incorrect usage of %%pyproject_buildrequires -R with -x/-e/-t
|
- Prevent incorrect usage of %%pyproject_buildrequires -R with -x/-e/-t
|
||||||
- Fixes: rhbz#2244282
|
- Fixes: rhbz#2244282
|
||||||
|
- Show a better error message when %%pyproject_install finds no wheel
|
||||||
|
- Fixes: rhbz#2242452
|
||||||
|
|
||||||
* Wed Sep 13 2023 Python Maint <python-maint@redhat.com> - 1.10.0-1
|
* Wed Sep 13 2023 Python Maint <python-maint@redhat.com> - 1.10.0-1
|
||||||
- Add %%_pyproject_check_import_allow_no_modules for automated environments
|
- Add %%_pyproject_check_import_allow_no_modules for automated environments
|
||||||
|
Loading…
Reference in New Issue
Block a user