Bug 24873 - Allow the usage of pip install <put your python package name here> in the spec file when a certain python-package is missing in the official Mageia repos
Summary: Allow the usage of pip install <put your python package name here> in the spe...
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-27 12:45 CEST by Kristoffer Grundström
Modified: 2019-05-30 10:16 CEST (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
Spec file for tribler to demonstrate my idea (2.23 KB, text/x-rpm-spec)
2019-05-27 12:46 CEST, Kristoffer Grundström
Details

Description Kristoffer Grundström 2019-05-27 12:45:58 CEST
Description of problem: I just came up with a good idea. Whenever you need to install a certain python package and it doesn't exist in the Mageia repos, why not use Python's pip install command in the spec file to install the package to meet the requirements?
That would make it easier to port some programs to Mageia as well.

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

How reproducible: No test case yet.

Steps to Reproduce:
1. Download the tribler spec I attached.
2. Download the source tarball from its github repo.
3. Try to build tribler and it will stop at an error about a missing python module which is located in a python package that Mageia does not have.
4. This is the time to let pip install the package that holds the module.
5. Now that the module is finally installed run rpmbuild -ba tribler.spec as a normal user and the package will build.
Comment 1 Kristoffer Grundström 2019-05-27 12:46:33 CEST
Created attachment 11032 [details]
Spec file for tribler to demonstrate my idea

CC: (none) => hamnisdude

Comment 2 Jani Välimaa 2019-05-27 15:02:48 CEST
Internet access is disabled in our build system and we need to build packages using official Mageia .rpms from our official repositories.

Closing as WONTFIX.

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

Comment 3 Kristoffer Grundström 2019-05-29 23:37:18 CEST
No offence meant towards you Jani, but how is a user supposed to be able to port a program like tribler if python-libnacl is non existant as a package in Mageia?
Comment 4 Jani Välimaa 2019-05-30 10:16:17 CEST
Create a rpm for python-libnacl. All (build)requires must be available in distribution before a new pkg can be imported and built.

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