summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* distutils-r1.eclass: Check for _all phase mismatchMichał Górny2021-06-291-0/+16
| | | | | | | Check for the mistake of calling distutils-r1_python_*_all() from non-all python_*() subphase. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use 'dosym -r' in EAPI 8Michał Górny2021-06-291-2/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Eliminate path arg to ..._wrap_scriptsMichał Górny2021-06-291-13/+12
| | | | | | | Eliminate the path argument to _distutils-r1_wrap_scripts, and inline the use of ${D} instead. This should make the code less confusing. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Defer wrapping scripts until after root-mergeMichał Górny2021-06-291-1/+1
| | | | | | | | Defer wrapping installed Python scripts until the files are merged from impl-specific directory into ${ED}. This should clear the way into using 'dosym -r'. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: fix distutils_enable_tests (${PYTHON_MULTI_USEDEP} usage)Sam James2021-06-291-1/+1
| | | | | | | | We banned PYTHON_MULTI_USEDEP in EAPI 8, so this internal usage causes breakage when using distutils_enable_tests in an EAPI 8 ebuild. Reported-by: Marco Scardovi (scardracs) <marco@scardovi.com> Signed-off-by: Sam James <sam@gentoo.org>
* Revert "distutils-r1.eclass: Use 'dosym -r' in EAPI 8"Mike Gilbert2021-06-241-4/+2
| | | | | | | | | | | | | | | | This breaks installation of scripts when EPREFIX is non-empty. _distutils-r1_wrap_scripts should create a symlink like this: "${D}/_${EPYTHON}${EPREFIX}/usr/bin/myscript" The "dosym" version of this code creates the following instead: "${D}${EPREFIX}/_${EPYTHON}/usr/bin/myscript" Reverts: 9f831e240a9804a996fc80015f64d5e102ced740 Closes: https://bugs.gentoo.org/798456 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* distutils-r1.eclass: Enable EAPI 8Michał Górny2021-06-231-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use 'dosym -r' in EAPI 8Michał Górny2021-06-231-2/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Ban dift --via-home in EAPI 8Michał Górny2021-06-231-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Require >=pyproject2setuppy-15Michał Górny2021-06-231-3/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Replace mydistutilsargs with DISTUTILS_ARGSMichał Górny2021-06-231-7/+16
| | | | | | | Add a new correctly-cased DISTUTILS_ARGS variable that replaces mydistutilsargs. Ban the latter in EAPI 8. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Refactor --install-scripts rewriting logicMichał Górny2021-06-231-22/+21
| | | | | | | | | Refactor the --install-scripts rewriting logic in distutils-r1_python_install to be less horrid. Instead of using variable indirection, just inline the mydistutilsargs logic from esetup.py and rewrite the combined argument array. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Introduce dift --via-venv install modeMichał Górny2021-06-021-34/+62
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Forbid .hypothesis in site-packages tooMichał Górny2021-05-041-1/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove support for EAPIs prior to 6Michał Górny2021-04-091-72/+12
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Update eclassdoc for BDEPENDMichał Górny2021-03-281-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use eunittest, add dep on unittest-or-failMichał Górny2021-03-281-1/+2
| | | | | | | | | Switch to the new helper for running unittest-style tests. Add a new dependency on dev-python/unittest-or-fail. Besides making the test phase fail on missing tests, it also means that IUSE=test is now added cnsistently with nose and pytest variants. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove distutils.eclass guardsMichał Górny2021-03-111-34/+0
| | | | | | | distutils.eclass is gone for a long time, ::progress is discontinued, it should be safe to assume people will no longer be copying old stuff. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use underscores in .pydistutils.cfg keysMichał Górny2021-03-111-6/+6
| | | | | | | | Switch to using underscore instead of hyphens in .pydistutils.cfg keys. The latter form is now deprecated by setuptools, while both seem to work fine with plain distutils. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use a common distutils-r1_python_testMichał Górny2021-03-111-46/+47
| | | | | | | | | | Use a common distutils-r1_python_test function to simplify handling different test scenarios. This avoids code duplication due to defining a lot of python_test() variants, as well as it makes it possible for overriden python_test() to call the base implementation provided by distutils_enable_tests. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use epytestMichał Górny2021-03-081-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: fix comment typoSam James2021-02-151-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: Require EPYTHON to be setMichał Górny2021-02-111-1/+3
| | | | | | | There is no context in which the function is called without EPYTHON set, so require it to be set instead of adding a fallback. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Fix setuptools without setup.pyMichał Górny2021-02-111-9/+8
| | | | | | | | | | Invoke pyproject2setuppy directly instead of writing the setup.py wrapper. This is necessary to correctly support setuptools via pyproject.toml without setup.py. Writing setup.py confuses pyproject2setuppy into running the setup.py code path instead of the correct non-setup.py path. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove obsolete conditionsMichał Górny2021-02-041-14/+5
| | | | | | Now that Python < 3.7 is not supported, apply --jobs unconditionally. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Update addpredict listMichał Górny2021-02-041-2/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Switch dift default to --via-rootMichał Górny2021-01-311-6/+6
| | | | | | | | | Switch the default distutils_install_for_testing behavior to --via-root (from legacy --via-home). The old versions of setuptools where --via-home worked are gone, and testing has so far proven that --via-root in the worst case leaves package as broken as before. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/distutils-r1: fix distutils_enable_sphinx with DIS.._SINGLE_IMPLAndrew Ammerlaan2021-01-281-7/+10
| | | | | | | | | python-single-r1 does not have the python_gen_any_dep function use the python_gen_cond_dep instead Closes: https://bugs.gentoo.org/704520 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* eclass: [QA] Revert multiple meaningless doc changesMichał Górny2020-12-281-37/+0
| | | | | | | | | | | Revert multiple meaningless eclass documentation changes, notably adding a lot of placeholders and documenting implementation details. These changes were aimed at silencing (valid) documentation warnings without actually providing valuable documentation to the end users. While some of these changes were beneficial, it would take a lot of effort to review them all and the author is unwilling to fix his mistakes. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/distutils-r1: fixup documentationAaron Bauman2020-12-161-0/+5
| | | | Signed-off-by: Aaron Bauman <bman@gentoo.org>
* eclass/distutils-r1: Fix EclassDocMissingFuncAaron Bauman2020-12-061-0/+32
| | | | Signed-off-by: Aaron Bauman <bman@gentoo.org>
* distutils-r1.eclass: Accept distutils_enable_tests --installMichał Górny2020-12-011-16/+58
| | | | | | | Add a convenience --install option to distutils_enable_tests to call distutils_install_for_testing. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Introduce install_for_testing --via-rootMichał Górny2020-12-011-9/+42
| | | | | | | | | | | | | Introduce a new --via-root mode for distutils_install_for_testing function. The legacy --via-home seems to no longer work for a lot of packages but before we can confirm that --via-root is good enough for every single one of them, let's have two variants to choose from. The general recommendation is to try --via-root, and explicitly specify --via-home if the former does not work. Once all packages have explicit --via-*, we will decide how to proceed. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove obsolete DISTUTILS_USE_SETUPTOOLS checkMichał Górny2020-09-211-42/+0
| | | | | | | The DISTUTILS_USE_SETUPTOOLS check is now done in install-qa-check.d, so remove the duplicate. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Set PATH in distutils_install_for_testingMichał Górny2020-08-091-0/+6
| | | | | | | | Make distutils_install_for_testing set PATH so that newly-installed scripts are available in the testing environment. Make PATH local in all sub-phases to make modifications safe. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Fix pyproject.toml w/ single-r1Michał Górny2020-07-021-17/+17
| | | | | Closes: https://bugs.gentoo.org/730426 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Set min nose/pytest versionsMichał Górny2020-06-191-2/+2
| | | | | | | Require minimum nose/pytest versions in distutils_enable_tests. This should save us some annoying bug reports from outdated systems. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Cover plain '[entry_points]' in setup.cfgMichał Górny2020-06-011-0/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1: fix test runner for setup.pyAlexey Sokolov2020-05-011-1/+2
| | | | | | | It didn't fail under nonfatal (e.g. by virtx) if the test failed. Closes: https://github.com/gentoo/gentoo/pull/15590 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Pass --skip-build when installingMichał Górny2020-04-141-1/+1
| | | | | | | | | | | | | | | Explicitly pass --skip-build in order to prevent distutils from rebuilding files when installing. This is especially relevant to some packages that build extensions, and the extensions get built again in src_install(). Technically, this can break some customized build systems that write implementation-specific data into source directory, and right now the implied rebuild caused it to be rewritten when installing. With this patch, the newest version of the file would be installed for all interpreters. I am not aware of any such packages, though. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Replace python_export with getterMichał Górny2020-03-221-5/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Align min. setuptools version to current stableMichał Górny2020-03-161-2/+2
| | | | | Closes: https://bugs.gentoo.org/712502 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Fix sphinx check for plugins useMichał Górny2020-03-061-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Make /usr/lib/pypy/share warning fatalMichał Górny2020-03-051-3/+1
| | | | | | | | All the share-related issues should have been fixed by the PyPy patch by now, and since PyPy target is not stable, there is really no need to be very graceful here. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Do not require distutils-r1_python_install_allMichał Górny2020-03-051-11/+0
| | | | | | | | Stop requiring ebuilds to call distutils-r1_python_install_all default function. It just calls einstalldocs these days, and it is unlikely that more magic will ever be added there. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python*-r1.eclass, distutils-r1.eclass: Link to Python GuideMichał Górny2020-03-051-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Add pyproject.toml supportMichał Górny2020-02-201-0/+29
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Switch test deps to PYTHON_MULTI_USEDEPMichał Górny2020-02-091-6/+16
| | | | | Closes: https://bugs.gentoo.org/704522 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Switch setuptools dep to PYTHON_MULTI_USEDEPMichał Górny2020-02-091-4/+12
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Look for entry_points in setup.cfgMichał Górny2020-01-171-0/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>