summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
...
* distutils-r1.eclass: Fix has_version for distutils_enable_sphinxMichał Górny2022-02-091-1/+5
| | | | | | | Fix the has_version calls for distutils_enable_sphinx to use -b option (--host-root in earlier EAPIs). Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Inline python_is_installedMichał Górny2022-02-091-19/+3
| | | | | | | | Inline the python_is_installed function that is used exactly once (in _python_run_check_deps). This helps us avoid having to grab PYTHON_PKG_DEP twice. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Report _python_run_check_deps verboselyMichał Górny2022-02-091-1/+9
| | | | | | | Report dep checking progress verbosely, to help users understand why a particular implementations was rejected or selected. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-any-r1.eclass: Explain the reason for interpreter choiceMichał Górny2022-02-091-3/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Add function to run python_check_deps()Michał Górny2022-02-093-34/+25
| | | | | | | Add a function encompassing the common logic to run python_check_deps() from python-any-r1 and python-r1. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-any-r1.eclass: Move EPYTHON validity check to python_setup()Michał Górny2022-02-091-22/+14
| | | | | | | | | Move the EPYTHON validity check from _python_EPYTHON_supported() to python_setup() where it belongs. This avoids unnecessarily retesting implementations taken from PYTHON_COMPAT and paves the way towards moving the common logic to python-utils-r1. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-r1.eclass: Remove deprecated python_gen_usedepMichał Górny2022-02-091-42/+1
| | | | | | | This function is deprecated for some time already and there are no more consumers left in ::gentoo. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Create distutils_pep517_install helperMichał Górny2022-02-091-29/+48
| | | | | | Split the wheel build & install logic into a a new helper. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Get wheel name from the backendMichał Górny2022-02-091-9/+5
| | | | | | | Use the wheel name returned by build_wheel() rather than trying to guess it from WHEEL_DIR. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Split backend getting code into a functionMichał Górny2022-02-091-47/+63
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* bazel.eclass: Add SUPPORTED_EAPIS 8 docJason Zaman2022-02-061-1/+1
| | | | Signed-off-by: Jason Zaman <perfinion@gentoo.org>
* llvm.eclass: Allow slot 15Michał Górny2022-02-061-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Bump main branch to 15.xMichał Górny2022-02-061-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/ruby-fakegem.eclass: updated extensions dir according to formula from ↵Andrew Aladjev2022-02-061-1/+4
| | | | | | | | | | rubygems Closes: https://bugs.gentoo.org/423589 Closes: https://bugs.gentoo.org/832268 Signed-off-by: Andrew Aladjev <aladjev.andrew@gmail.com> Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* scons-utils.eclass: Replace deprecated PYTHON_MULTI_USEDEPMichał Górny2022-02-041-3/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass: deprecate the old go eclassesWilliam Hubbs2022-02-044-0/+4
| | | | | | | | The golang-* eclasses should not be used for new go packages. Modern go packages use go modules and the go-module eclass handles this setup. Signed-off-by: William Hubbs <williamh@gentoo.org>
* dune.eclass: enhance build and test logsAlfredo Tupone2022-02-021-2/+2
| | | | Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* distutils-r1.eclass: Restore QA warning for DUS + DISTUTILS_OPTIONALMichał Górny2022-02-011-0/+5
| | | | | | | Restore the QA warning (proviously issued as part of install-qa-check.d) for combining DISTUTILS_USE_SETUPTOOLS and DISTUTILS_OPTIONAL. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Add DISTUTILS_DEPS output var for PEP 517 modeMichał Górny2022-02-011-1/+33
| | | | | | | | | | The PEP 517 build-time deps have gotten more complex, and largely depend on the internal eclass logic used to build and install wheels. Introduce a DISTUTILS_DEPS output variable that contains the correct BDEPEND string for use in DISTUTILS_OPTIONAL=1 ebuilds. Bug: https://bugs.gentoo.org/832337 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Move DISTUTILS_OPTIONAL check into set_globalsMichał Górny2022-02-011-7/+9
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Fix subphase return value passthroughMichał Górny2022-02-011-15/+33
| | | | | | | | | | | | | | | | | | | | | | | | Fix distutils-r1 phase functions to correctly pass through the return value from the subphases. This fixes e.g. the mistake of virtx not failing in the following case: src_test() { virtx distutils-r1_src_test } python_test() { epytest } This is because virtx implicitly uses nonfatal and epytest uses `die -n`. However, since the return value was not passed through, virtx never knew that anything has failed. While this covers only trivial cases and this is better solved via dying explicitly in the redefined python_test(), there's no harm in adding this passthrough. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: make esetup.py require setup.{py,cfg}Michał Górny2022-02-011-0/+3
| | | | | | | | | Make esetup.py fail if neither setup.py nor setup.cfg is available. To support PEP 517 builds, the function has been modified to work without setup.py. However, this also caused esetup.py to implicitly succeed in installing zero files on non-distutils/setuptools packages. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Disable stale egg-info cleaning in PEP517 modeMichał Górny2022-02-011-1/+7
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* vcs-snapshot.eclass: canonical variable orderingDavid Seifert2022-02-011-1/+6
| | | | | Closes: https://github.com/gentoo/gentoo/pull/24013 Signed-off-by: David Seifert <soap@gentoo.org>
* vcs-snapshot.eclass: remove EAPI 0-5David Seifert2022-02-011-5/+5
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* vcs-snapshot.eclass: enable EAPI 8David Seifert2022-02-011-3/+3
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* vcs-clean.eclass: add missing dieDavid Seifert2022-02-011-3/+9
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* vcs-clean.eclass: enable EAPI 8David Seifert2022-02-011-4/+4
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* usr-ldscript.eclass: canonical variable orderingDavid Seifert2022-02-011-3/+3
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* usr-ldscript.eclass: remove EAPI 5David Seifert2022-02-011-3/+3
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* user-info.eclass: remove EAPI 5David Seifert2022-02-011-4/+4
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* user.eclass: canonical variable orderingDavid Seifert2022-02-011-3/+3
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* user.eclass: remove EAPI 5David Seifert2022-02-011-4/+4
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* toolchain.eclass: canonical variable orderingDavid Seifert2022-02-011-9/+14
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* toolchain.eclass: remove EAPI 5 and 6David Seifert2022-02-011-70/+40
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* texlive-common.eclass: respect EPREFIX in symlink creationSam James2022-01-311-3/+3
| | | | | Closes: https://bugs.gentoo.org/832408 Signed-off-by: Sam James <sam@gentoo.org>
* bazel.eclass: Add EAPI8 supportJason Zaman2022-01-291-3/+5
| | | | | | Also don't BDEP on bazel from the bazel package itself Signed-off-by: Jason Zaman <perfinion@gentoo.org>
* distutils-r1.eclass: Do not create ${BUILD_DIR}/lib in PEP 517 modeMichał Górny2022-01-291-8/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Fix installing scripts w/ PEP517 & single-implMichał Górny2022-01-291-0/+3
| | | | | Closes: https://bugs.gentoo.org/832267 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass: Update links to Gentoo Python GuideMichał Górny2022-01-295-6/+6
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Support deprecated flit/poetry backendsMichał Górny2022-01-291-2/+23
| | | | | | | | | Detect, report and fix the deprecated flit/poetry backends to use flit_core and poetry_core respectively. In both cases, the end result is the same. Using flit involves unnecessary dependencies, and poetry is not even packaged right now (and has even worse dependency hell). Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Improve PEP 517 einfo outputMichał Górny2022-01-291-1/+2
| | | | | | | Add an einfo message for calling installer. Indent both messages relevant to PEP 517 logic. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Set script shebangs to venv in PEP 517Michał Górny2022-01-291-15/+24
| | | | | | | | | | | | | | | | | | | Alter the shebangs of generated scripts to point out the to venv Python executables in PEP 517 mode. Otherwise, the executables are run with system Python during the test run and therefore do not use the venv. For convenience, rather than modifying them back just copy them immediately into the python-exec directory. This means that instead of reverting some of our python_compile() changes in python_install() and then moving scripts to the python-exec directory, we can just discard /usr/bin and let the wrapping logic recreate it. While at it, stop repeating ${root}${EPREFIX}/usr/bin multiple times in python_compile(). Just shove it into a helper variable. Also move pyvenv.cfg inside bindir for convenience — Python is fine with either location. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* java-vm-2.eclass: support EAPI=7Georgy Yakovlev2022-01-271-3/+3
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* java-virtuals-2.eclass: support EAPI=7Georgy Yakovlev2022-01-271-3/+3
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* sgml-catalog-r1.eclass: Remove obsolete environment filesJames Le Cuirot2022-01-251-13/+5
| | | | | | | | | | | | These files are only regenerated when gensgmlenv is present, but this tool was part of sgmltools-lite, which was last-rited over a year ago. The presence of 93sgmltools-lite can break tools such as asciidoc. When SGML_CATALOG_FILES is defined, it automatically passes the --catalogs option to xmllint, which uses the obsolete variable over the updated catalogs listed in /etc/sgml/catalog. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* java-utils-2.eclass: update rather-obsolete python-updater referenceSam James2022-01-251-2/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: Bump installer requirement and remove hackMichał Górny2022-01-241-8/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Make epytest disable plugins we don't wantMichał Górny2022-01-241-0/+8
| | | | | | | | | | | Make epytest explicitly disable unwanted plugins such as pytest-cov or pytest-flakes. We want the relevant options to be stripped out of pytest config files. However, when these packages are installed on the system, it's easy to miss them and then users (or tinderboxes) hit the failures first. Disabling the plugins explicitly forces them to fail immediately while testing. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Link to installer +x fixMichał Górny2022-01-231-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>