On 15. 07. 25 11:04, Martin Gansser wrote:
Hi, after using the pyproject_* macros for flowblade [1], the compilation fails with the following error message: Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.FtJ5fH + umask 022 + cd /builddir/build/BUILD/flowblade-2.22-build + cd flowblade-2.22 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'ERROR: Neither pyproject.toml nor setup.py found, consider using %pyproject_buildrequires -N <requirements-file> if this is not a Python package.' ERROR: Neither pyproject.toml nor setup.py found, consider using %pyproject_buildrequires -N <requirements-file> if this is not a Python package. + exit 1 [1] https://martinkg.fedorapeople.org/ErrorReports/flowblade.spec
It is necessary to use %pyproject_buildrequires from the folder where the Python package has its pyproject.toml and/or setup.py file:
%generate_buildrequires cd flowblade-trunk %pyproject_buildrequires -- Miro Hrončok -- Phone: +420777974800 Fedora Matrix: mhroncok -- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue