Before this [0] commit in setuptools, building a C extension would create the lib.linux-x86_64-3.9 build directory. That's not the case now, as with the latest version, the directory would be lib.linux-x86_64-cpython39 This currently makes a number of packages to fail, e.g. bug 2097107 [0] https://github.com/pypa/setuptools/pull/3258/commits/1c23f5e1e4b18b50081cbabb2dea22bf345f5894
Awesome! This is the current iplmentation: %pyproject_build_lib %{expand:\\\ $( pyproject_build_lib=() if [ -d build/lib.%{python3_platform}-%{python3_version} ]; then pyproject_build_lib+=( "${PWD}/build/lib.%{python3_platform}-%{python3_version}" ) fi if [ -d build/lib ]; then pyproject_build_lib+=( "${PWD}/build/lib" ) fi for directory in $(find "%{_pyproject_builddir}" -type d -wholename "%{_pyproject_builddir}/pip-req-build-*/build/lib.%{python3_platform}-%{python3_version}" 2>/dev/null); do pyproject_build_lib+=( "${directory}" ) done for directory in $(find "%{_pyproject_builddir}" -type d -wholename "%{_pyproject_builddir}/pip-req-build-*/build/lib" 2>/dev/null); do pyproject_build_lib+=( "${directory}" ) done echo $(IFS=:; echo "${pyproject_build_lib[*]}") )} I believe this can be solved by adding more ifs and fors. Due to the ongoing Python 3.11 rebuild, I won't be looking into this soon. I would be able to review a PR. ------- Note that there are many packages that make this assumption in their spec file manually without pyproject-rpm-macros
https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/291
FEDORA-2022-d857c5b521 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-d857c5b521
FEDORA-2022-d857c5b521 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-49880f29f9 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-49880f29f9
FEDORA-2022-de6aa089a7 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-de6aa089a7
FEDORA-2022-49880f29f9 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-49880f29f9` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-49880f29f9 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-de6aa089a7 has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-de6aa089a7` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-de6aa089a7 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-de6aa089a7 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-49880f29f9 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.