Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612962 - distutils-r1: add eclass variables for build and install phases
Summary: distutils-r1: add eclass variables for build and install phases
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-18 05:08 UTC by David Hicks
Modified: 2017-03-22 14:16 UTC (History)
2 users (show)

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 David Hicks 2017-03-18 05:08:14 UTC
Existing eclass variable "mydistutilsargs" only sets global variables for setup.py

To avoid having to override python_compile() and python_install() functions as often, it may be helpful to have the following two additional variables defined in distutils-r1.eclass:

"mydistutilsbuildargs" used as follows:
  "setup.py ${mydistutilsargs[@]} build ${mydistutilsbuildargs[@]}"


"mydistutilsinstallargs" used as follows:
  "setup.py ${mydistutilsargs[@]} install ${mydistutilsinstallargs[@]}"
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-18 07:10:01 UTC
Using global variables for that is a bad idea. This is really rarely needed, and in this case explicit python_*() override is more readable anyway.