Hi Peter.You can build the kind of dependency-aware rpm you're looking for in 
two ways.Do a pip download of the python package with or without dependencies 
and have the %post scriptlet in the RPM spec file do a pip install of the 
wheel, tar.gz or egg into the target python installation, which will pull other 
dependent packages required by the python package file.Maybe no file at all 
needs to be included in the rpm itself, just the rpm post scriptlet doing the 
pip install.The fpm utility can be used to convert a pip package to an rpm 
package. You still may need to provide a postinstall script argument that does 
the pip install of dependencies. Michael MabinSent from my Verizon, Samsung 
Galaxy smartphone
-------- Original message --------From: Peter Oliver 
<lists.fedoraproject....@mavit.org.uk> Date: 11/13/20  4:50 PM  (GMT-06:00) To: 
python-devel@lists.fedoraproject.org Subject: Automated Python packaging? 
Thereʼs a Python module Iʼd like to package for Fedora.  I made a start on 
Copr, but I rapidly got lost in a maze of missing dependencies and broken 
builds.OTOH, running `pip install` takes seconds and everything just works.I 
feel like someone must have come up with an easy way of building a chain of 
PyPI dependencies into a collection of RPMs.  Am I missing a trick?-- Peter 
Oliver_______________________________________________python-devel mailing list 
-- python-devel@lists.fedoraproject.orgTo unsubscribe send an email to 
python-devel-leave@lists.fedoraproject.orgFedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/List Guidelines: 
https://fedoraproject.org/wiki/Mailing_list_guidelinesList Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-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/python-devel@lists.fedoraproject.org

Reply via email to