From 64e45518efa5e8be819a0de7443ce71c5d41d0ed Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Tue, 21 Jul 2020 14:31:41 +0200 Subject: [PATCH] Use versioned pathfixX.Y.py script so pyproject-rpm-macros can depend on any pythonX.Y-devel package --- macros.pyproject | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros.pyproject b/macros.pyproject index ba53f4a..c5fbf74 100644 --- a/macros.pyproject +++ b/macros.pyproject @@ -26,7 +26,7 @@ specifier=$(ls %{_pyproject_wheeldir}/*.whl | xargs basename --multiple | sed -E export TMPDIR="${PWD}/%{_pyproject_builddir}" %{__python3} -m pip install --root %{buildroot} --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 - pathfix.py -pni "%{__python3}" -k%{?py3_shbang_opts: -a%{py3_shbang_opts_nodash}} %{buildroot}%{_bindir}/* + pathfix%{python3_version}.py -pni "%{__python3}" -k%{?py3_shbang_opts: -a%{py3_shbang_opts_nodash}} %{buildroot}%{_bindir}/* rm -rfv %{buildroot}%{_bindir}/__pycache__ fi rm -f %{pyproject_ghost_distinfo}