Bug 1696214 - python34-setuptools will no longer produce packages with bdist_rpm
Summary: python34-setuptools will no longer produce packages with bdist_rpm
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python34
Version: epel7
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-04 11:03 UTC by Ulrik Haugen
Modified: 2024-07-09 02:48 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-07-09 02:48:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ulrik Haugen 2019-04-04 11:03:31 UTC
Description of problem:

When packaging Python projects with bdist_rpm from python34-setuptools it creates a spec file that tries to invoke "python3 setup.py build".

Since today none of its dependencies provides python3.

Presumably also any entry points will point to python3 in their hashbangs rendering them unable to start or locate libraries installed for python3.4.


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

python34-setuptools-39.2.0-3.el7.noarch


How reproducible:

Always


Steps to Reproduce:
1. Install python34-setuptools and keep python36 from being installed.
2. Run python3.4 setup.py bdist_rpm in some Python 3 project.

Actual results:

[...]
+ python3 setup.py build
/var/tmp/rpm-tmp.7F0CJk: line 29: python3: command not found
error: Bad exit status from /var/tmp/rpm-tmp.7F0CJk (%build)


Expected results:

Successful completion resulting in packaged Python software.


Additional info:

As i noted above this probably extends to scripts installed for
entry points as well, if this issue is addressed, please look in
to that question too.

Comment 1 Miro Hrončok 2019-04-04 11:39:42 UTC
A very dirty fix would be to patch bdist_rpm to use python3.X in the spec file instead of python3.

Comment 2 Miro Hrončok 2019-04-04 11:40:21 UTC
AFAIK the responsible code is part of distutils (standard library).

Comment 3 Ulrik Haugen 2019-04-04 11:57:40 UTC
Patching bdist_rpm seems like a good start but please see my note about entry points too!

Comment 4 Miro Hrončok 2019-04-04 12:08:04 UTC
console scripts entrypoints are created with the caller script. e.g. if you call python3.4 setup.py install, the entrypoints will have /usr/bin/pythno3.4 shebangs.

Comment 5 Petr Viktorin (pviktori) 2019-09-03 13:48:17 UTC
I won't have time to work on this. Feel free to take it.

Comment 6 Troy Dawson 2024-07-09 02:48:19 UTC
EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug.


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