Bug 25338 - Allow building rpm packages with python-pip dependencies in spec files
Summary: Allow building rpm packages with python-pip dependencies in spec files
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-21 18:31 CEST by Kristoffer Grundström
Modified: 2019-08-21 19:09 CEST (History)
1 user (show)

See Also:
Source RPM: rpm-build
CVE:
Status comment:


Attachments

Description Kristoffer Grundström 2019-08-21 18:31:42 CEST
Description of problem: I think it's time to introduce using python packages as build dependencies if they're not already ported and packaged the normal way. Such an example would be python-plyvel. That package cannot be found with urpmq or dnf, but it can however be found by searching with pip search plyvel. This would make programs easier to port and saves time.

Version-Release number of selected component (if applicable): 4.14.2.1

How reproducible: All the time.

Steps to Reproduce:
1. Download a spec file.
2. Add python-pip dependencies to the spec file when a package cannot be found with urpmi/urpmq/urpmf or dnf.
3. Open a terminal.
4. Login as root.
5. cd to the place where the spec file is located.
6. Run urpmi nameofspecfile.spec --auto and it will install pip dependencies as well.
7. Build the program that needs the pip dependencies.
Comment 1 Jani Välimaa 2019-08-21 19:09:43 CEST
You can use pyp2rpm to create rpms from pypi.

All pkgs we use building must be available in our official repo. If something is missing, it needs be imported first to be able to build others.

And as a side note, we have plyvel available:
$ urpmq -Yf plyvel
python2-plyvel-1.1.0-1.mga8.x86_64
python3-plyvel-1.1.0-1.mga8.x86_64

Closing as WONTFIX.

Resolution: (none) => WONTFIX
CC: (none) => jani.valimaa
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.