summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* distutils-r1.eclass: addpredict /usr/lib/${EPYTHON}Mike Gilbert2018-11-261-0/+1
| | | | | | | | This works around sandbox failures with python3.7, which moved from /usr/$(get_libdir) to /usr/lib. Bug: https://bugs.gentoo.org/671948 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* distutils-r1.eclass: add @SUPPORTED_EAPISMichał Górny2018-08-151-0/+1
|
* distutils-r1.eclass: Enable parallel builds in py3.5+Michał Górny2018-07-201-3/+19
| | | | | | | | | | | Python 3.5+ introduces parallel build support in distutils. Take advantage of that by passing appropriate -j option. Since distutils does not support an equivalent of --load-average, default to the number of CPUs+1 when unspecified. In order to avoid breaking stable systems, introduce the new behavior only for EAPI 7 ebuilds, or older EAPI ebuilds with unstable implementations (Python 3.7 and PyPy 3).
* distutils-r1.eclass: Enable EAPI 7 supportMichał Górny2018-05-071-5/+9
| | | | | Support EAPI 7. Move PYTHON_DEPS from DEPEND to BDEPEND. Fix trailing slash uses for D/ED.
* distutils-r1.eclass: Call python via ${EPYTHON}, not full pathMichał Górny2018-05-071-2/+2
|
* distutils-r1.eclass: Remove xdg_environment_reset in EAPI 7Michał Górny2018-05-071-3/+4
| | | | | Limit xdg_environment_reset call to EAPIs 5 & 6. It should no longer be necessary with ENV_UNSET done in EAPI 7.
* eclass: misc spelling fixesMike Frysinger2018-03-281-2/+2
|
* distutils-r1.eclass: Reuse python_setup for common phasesMichał Górny2017-05-291-13/+13
| | | | | | | | | | | | Rewrite the python_*_all() phase running code to reuse python_setup instead of hacking on top of python_foreach_impl. The resulting code is a bit simpler but most importantly, it avoids duplication of code from python-r1 and ensures that distutils-r1 common phases are directly altered by changes in python_setup. The code still needs to reimplement some of the internals. However, it is mostly limited to code specific to distutils-r1, and should be more maintainable.
* distutils-r1.eclass: Remove QA-warning for DISTUTILS_NO_PARALLEL_BUILDMichał Górny2017-05-291-9/+0
| | | | | The variable was deprecated and the warning put in place in Dec 2014. It is no longer used in any ebuild in ::gentoo.
* distutils-r1.eclass: Use _python_impl_matches()Michał Górny2017-05-291-7/+10
| | | | Update the missed occurence of pattern matching with the new framework.
* distutils-r1.eclass: Namespace & doc _clean_egg_infoMichał Górny2017-05-161-5/+9
| | | | | | | Prefix the _clean_egg_info function with an appropriate namespace, and document its purpose with eclassdoc format. Be more verbose on the exact problem being solved; remove URL to old upstream bug tracker that no longer exists.
* distutils-r1.eclass: Warn if *-nspkg.pth files are installedMichał Górny2017-05-161-0/+29
| | | | | | | | | | | | | Add a check for *-nspkg.pth files indicating implicit setuptools namespace hack. While they kept namespaces somewhat working without requiring explicit support in ebuilds, they were unreliable. They frequently required additional hacks (distutils_install_for_testing) to get the tests working, and they have proven even more broken for Python 3.5+. For this reason, those files were deprecated in favor of proper, explicit namespace support. If they are found to exist, the developer should ensure to remove them to avoid issues.
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* distutils-r1.eclass: Reject EAPI=4 explicitlyMichał Górny2017-02-171-2/+2
|
* eclass/distutils-r1.eclass: Remove setting egg-base due to absolute path errorsBrian Dolbec2017-01-121-5/+0
| | | | | In setuptools and new python releases, this causes the SOURCES.txt to include all egg-info files with absolute paths. Without this setting these files are not included in that file and everything works and installs correctly.
* distutils-r1.eclass: make *_install_for_testing install proper egg-infoMathy Vanvoorden2016-11-141-0/+2
| | | | | | | | | | | | | Currently distutils_install_for_testing does not install the complete egg-info into ${TEST_DIR}. This was first noticed by W. Trevor King and reported in bug #524322. Based on info found in the related upstream setuptools bug I added the necessary call to setuptools to create the complete egg_info. Without this certain packages (like cryptography) fail during testing because they use introspection but the metadata isn't available. Bug: https://bugs.gentoo.org/524322
* distutils-r1.eclass: reset XDG env varsMike Gilbert2016-07-031-1/+2
| | | | Bug: https://bugs.gentoo.org/577704
* distutils-r1.eclass: Do not modify the HOME variableMike Gilbert2016-06-051-6/+0
| | | | | This was only necessary when we ran phases in parallel. Also, PMS says this variable should not be modified.
* distutils-r1.eclass: Move creation of .pydistutils.cfg to esetup.pyMike Gilbert2016-06-051-5/+10
| | | | | | | | | | | | | Also remove .pydistutils.cfg from HOME before returning. This config should only be needed when we are invoking setup.py. The esetup.py wrapper provides a normalized way for doing this; if ebuilds call setup.py without the wrapper, they are now also responsible for setting the build directory if necessary. This change allows us to stop overriding the HOME variable, and prevents leakage of eclass-specifc configuration to the general ebuild environment.
* distutils-r1.eclass: Strip the trailing slash from DMike Gilbert2016-06-051-2/+2
| | | | This just looks nicer in build logs.
* Revert "distutils-r1.eclass: Do not modify the HOME variable"Mike Gilbert2016-05-281-0/+6
| | | | | | This reverts commit 3bcfb71425f15e237d6002ff3626e2e169df3f05. This change can break ebuilds that call esetup.py in src_test.
* distutils-r1.eclass: Do not modify the HOME variableMike Gilbert2016-05-211-6/+0
| | | | | This was only necessary when we ran phases in parallel. Also, PMS says this variable should not be modified.
* distutils-r1.eclass: Do not apply patches if DISTUTILS_OPTIONAL is usedMichał Górny2016-05-211-5/+7
| | | | | | | | | | | | Do not apply PATCHES and user patches (either via the EAPI 6 default or pre-EAPI 5 code) when DISTUTILS_OPTIONAL is being used. In this case, distutils functions are usually called conditionally, in a subdirectory, while both PATCHES and user patches are usually intended to be applied top-level. There is no ebuild relying on distutils-r1_src_prepare applying patches with DISTUTILS_OPTIONAL. In fact, there are ebuilds which work around this behavior.
* distutils-r1.eclass: Do not rely on INSDESTTREE, #173630Michał Górny2016-05-141-4/+6
|
* distutils-r1.eclass: _copy_egg_info(), 'cp -R' for BSD compat, #568692Michał Górny2015-12-191-1/+1
| | | | | | | Use 'cp -R' for distutils-r1_copy_egg_info() as the '-r' option triggers triggers undesired '-L' behavior wrt symbolic links. Fixes: https://bugs.gentoo.org/show_bug.cgi?id=568692
* distutils-r1.eclass: Unset local functions after useMichał Górny2015-12-091-0/+1
|
* distutils-r1.eclass: Enable EAPI 6Michał Górny2015-11-281-1/+1
|
* distutils-r1.eclass: Remove unnecessary eutils inherit in EAPI 6Michał Górny2015-11-281-1/+2
|
* distutils-r1.eclass: Make default _all impl call warning fatal in EAPI 6Michał Górny2015-11-281-2/+8
|
* distutils-r1.eclass: Ban DISTUTILS_NO_PARALLEL_BUILD in EAPI 6Michał Górny2015-11-281-0/+2
|
* distutils-r1.eclass: Ban EXAMPLES in EAPI 6Michał Górny2015-11-281-0/+4
|
* distutils-r1.eclass: Make pypy/share QA error fatal in EAPI 6Michał Górny2015-11-281-1/+3
|
* distutils-r1.eclass: Ban no-op default phase implementations in EAPI 6Michał Górny2015-11-281-2/+2
|
* distutils-r1.eclass: Use default_src_prepare to apply patches in EAPI 6Michał Górny2015-11-281-3/+6
|
* distutils-r1.eclass: esetup.py, respect nonfatal in EAPI 6Michał Górny2015-11-281-1/+4
|
* eclass: Revert "Use consistent place for then in if clause"Michał Górny2015-10-301-1/+2
| | | | | | | The commit was done without contacting the maintainer and does not conform to line width used within the eclass. Reverts: df8e399c9b ("eclass: Use consistent place for...")
* eclass: Use consistent place for then in if clauseJustin Lecher2015-10-301-2/+1
| | | | Signed-off-by: Justin Lecher <jlec@gentoo.org>
* distutils-r1.eclass: mkdir ${BUILD_DIR}/libMike Gilbert2015-09-121-0/+8
| | | | Bug: https://bugs.gentoo.org/559644
* eclass: fix various doc errors #537392Mike Frysinger2015-08-141-1/+1
|
* proj/gentoo: Initial commitRobin H. Johnson2015-08-081-0/+822
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed