Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616158 - python-utils-r1: Look into removing the need for PYTHON_CONFIG from python_wrapper_setup
Summary: python-utils-r1: Look into removing the need for PYTHON_CONFIG from python_wr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://archives.gentoo.org/gentoo-de...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-20 21:38 UTC by Michał Górny
Modified: 2017-05-16 16:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-20 21:38:44 UTC
As noted on IRC, python_wrapper_setup currently gets PYTHON_CONFIG to link to it, which forces unconditional build-time dep on Python. Maybe we could get away with just linking to pythonX.Y-config (without ABIFLAGS) and avoid the dependency. That is, if anybody cares not to have Python at build time for a few corner case packages.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-21 15:10:03 UTC
Patch sent for review.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-05-16 16:56:51 UTC
commit 6a5909861804d1c32cf5b850c4b143c02009f661
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Fri Apr 21 16:03:23 2017
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Tue Apr 25 19:57:56 2017

    python-utils-r1.eclass: python_wrapper_setup, do not query PYTHON_CONFIG
    
    Use plain 'pythonX.Y-config' executable name in the python-config
    wrapper instead of querying the complete PYTHON_CONFIG path from
    python_export.
    
    Constructing full PYTHON_CONFIG path requires querying ABIFLAGS which
    requires the Python interpreter to be installed, which in turn
    unnecessarily forces every ebuild using the eclass to carry a build-time
    dependency on the Python interpreter.
    
    All current versions of Python correctly install 'pythonX.Y-config'
    symlink that points to the correct ABI-suffixed binary. It is therefore
    unnecessary to use the full path.