On Fri, 4 Aug 2023, Susi Lehtola wrote:

Hi,


it's been a while since I did active Python packaging. However, one of my
packages, python-qcelemental, https://github.com/MolSSI/QCElemental, has
switched over from setup.py to

$ python -m pip install qcelemental

I did not see anything in the Python packaging guidelines on how to handle such
cases in the spec file. Does anybody have an example I could follow?

You can't build Fedora packages using pip (no network access allowed), but it looks like they switched to a pyproject.toml, so following the standard modern guidelines should work, ie:

%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install


Scott
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to