Bug 1405483 - rpm-build: consider switching to system-python
Summary: rpm-build: consider switching to system-python
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-16 15:47 UTC by Petr Šabata
Modified: 2016-12-19 10:24 UTC (History)
4 users (show)

Fixed In Version: rpm-4.13.0-8.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-19 09:16:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Switch to system-python (317 bytes, patch)
2016-12-16 15:48 UTC, Petr Šabata
no flags Details | Diff
Switch rpm-build to system-python (RHBZ #1405483) (2.35 KB, patch)
2016-12-18 11:33 UTC, Igor Gnatenko
no flags Details | Diff

Description Petr Šabata 2016-12-16 15:47:21 UTC
rpm-build currently depends (via its pythondistdeps.py) on python2 and pulls the entire python2 stack into every buildroot.  Consider switching to smaller, leaner, python3-based and currently always present system-python.  This change will also allow us to ship system-python-only base modules.

The script works fine with Python 3 and system-python & system-python-libs provide everything it needs.

The change is fairly straightforward and only involves changing the shebang line from #!/usr/bin/python to #!/usr/libexec/system-python.

Thanks!

Comment 1 Petr Šabata 2016-12-16 15:48:34 UTC
Created attachment 1232566 [details]
Switch to system-python

Just for completeness.

Comment 2 Igor Gnatenko 2016-12-16 20:09:15 UTC
Heh, I did the switch for all other stuff. Somehow missed this.

Comment 3 Igor Gnatenko 2016-12-18 11:33:11 UTC
Created attachment 1233094 [details]
Switch rpm-build to system-python (RHBZ #1405483)

References: https://bugzilla.redhat.com/show_bug.cgi?id=1405483
Signed-off-by: Igor Gnatenko <ignatenko>

Comment 4 Petr Šabata 2016-12-19 10:24:29 UTC
Awesome, thanks.


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