diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-06-02 19:59:01 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-06-14 14:26:07 +0200 |
commit | 75da06793abc7dc2dc5fc0faec81fad7c56d9d45 (patch) | |
tree | e7e9fc2776fa970afddd594129eb659cd6ceeef5 /eclass/distutils-r1.eclass | |
parent | distutils-r1.eclass: Document BUILD_DIR for consistency (diff) | |
download | gentoo-75da06793abc7dc2dc5fc0faec81fad7c56d9d45.tar.gz gentoo-75da06793abc7dc2dc5fc0faec81fad7c56d9d45.tar.bz2 gentoo-75da06793abc7dc2dc5fc0faec81fad7c56d9d45.zip |
distutils-r1.eclass: Remove support for `d_e_t --install`
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 3d72a5d3d554..f0d9d3a4b937 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -566,7 +566,7 @@ distutils_enable_sphinx() { } # @FUNCTION: distutils_enable_tests -# @USAGE: [--install] <test-runner> +# @USAGE: <test-runner> # @DESCRIPTION: # Set up IUSE, RESTRICT, BDEPEND and python_test() for running tests # with the specified test runner. Also copies the current value @@ -578,10 +578,6 @@ distutils_enable_sphinx() { # # - unittest: for built-in Python unittest module # -# Additionally, if --install is passed as the first parameter, -# 'distutils_install_for_testing --via-root' is called before running -# the test suite. -# # This function is meant as a helper for common use cases, and it only # takes care of basic setup. You still need to list additional test # dependencies manually. If you have uncommon use case, you should @@ -592,14 +588,9 @@ distutils_enable_sphinx() { distutils_enable_tests() { debug-print-function ${FUNCNAME} "${@}" - _DISTUTILS_TEST_INSTALL= case ${1} in --install) - if [[ ${DISTUTILS_USE_PEP517} ]]; then - die "${FUNCNAME} --install is not implemented in PEP517 mode" - fi - _DISTUTILS_TEST_INSTALL=1 - shift + die "${FUNCNAME} --install is no longer supported" ;; esac @@ -1679,10 +1670,6 @@ distutils-r1_python_test() { _python_check_EPYTHON - if [[ ${_DISTUTILS_TEST_INSTALL} ]]; then - distutils_install_for_testing - fi - case ${_DISTUTILS_TEST_RUNNER} in pytest) epytest |