From the package review of python-torch https://bugzilla.redhat.com/show_bug.cgi?id=2242971 reproduce with mock --with pyproject ~/rpmbuild/SRPMS/python-torch-2.1.0-5.fc40.src.rpm and get this failure + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/pytorch-v2.1.0/pyproject-wheeldir /usr/bin/python3: No module named pip Reproducible: Always
Using %pyproject_wheel without %pyproject_buildrequires is not supported. If you do that, you need to specify all build dependencies (including pip) manually. And you need to be prepared that they might change in the future. Let me figure out why you think %pyproject_buildrequires is broken in bz2242971.
the %project_buildrequires could not resolve python-cmake,ninja the ones it could have been added manually