Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 323311

Summary: python.eclass: Allow to define only build-time dependency on Python
Product: Gentoo Linux Reporter: Peter Volkov (RETIRED) <pva>
Component: EclassesAssignee: Python Gentoo Team <python>
Status: RESOLVED WONTFIX    
Severity: normal CC: maxposedon, sirnickity, vapier
Priority: High Keywords: InOverlay, InVCS
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard: python-overlay
Package list:
Runtime testing required: ---

Description Peter Volkov (RETIRED) gentoo-dev 2010-06-09 09:59:00 UTC
Looks like it's impossible to specify only build time dependence on python: both RDEPEND and DEPEND are specified. pidgin and x11-plugins/purple-plugin_pack need python as build time dependency only. Please, provide means either to disable python deps in eclass or to separate DEPEND/RDEPEND. Thanks in advance.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-06-20 13:26:50 UTC
Support for PYTHON_BDEPEND was recently implemented.
Comment 2 SpanKY gentoo-dev 2012-01-23 23:59:56 UTC
*** Bug 341037 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2012-01-24 00:00:29 UTC
and the diff for adding it to gentoo-x86 is where ?
Comment 4 SpanKY gentoo-dev 2012-01-24 01:33:54 UTC
there's also the issue of python_set_active_version().  currently it only works inside of pkg_setup, but this doesn't really make sense considering the func only matters to compiling, so it should be restricted to src_* steps.  otherwise the eclass ends up aborting due to python not being installed when merging binpkgs.
Comment 5 Arfrever Frehtes Taifersar Arahesis 2012-01-31 22:09:19 UTC
(In reply to comment #4)

'python' can be called in pkg_setup(). Some functions (PYTHON(), python_get_*()) are also affected by python_set_active_version() and are sometimes called in pkg_setup().
Comment 6 SpanKY gentoo-dev 2012-01-31 23:57:18 UTC
(In reply to comment #5)

you're assuming python is available at pkg_* time.  that is a fundamentally invalid assumption.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-13 16:03:41 UTC
*** Bug 447052 has been marked as a duplicate of this bug. ***
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-02 14:12:25 UTC
No new features will be added to python.eclass, so closing as WONTFIX.