diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-12-20 18:22:38 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-12-24 11:20:53 +0100 |
commit | ae79fb630f0ddb63bfee0ba3ddd11e9de3d60637 (patch) | |
tree | 9584e4d7d02e5adb1a219d661d0c1190c18264d0 /eclass/distutils-r1.eclass | |
parent | dev-python/argcomplete: Bump to 1.11.0 (diff) | |
download | gentoo-ae79fb630f0ddb63bfee0ba3ddd11e9de3d60637.tar.gz gentoo-ae79fb630f0ddb63bfee0ba3ddd11e9de3d60637.tar.bz2 gentoo-ae79fb630f0ddb63bfee0ba3ddd11e9de3d60637.zip |
distutils-r1.eclass: Permit DISTUTILS_USE_SETUPTOOLS=manual
Add a new DISTUTILS_USE_SETUPTOOLS option to permit manually setting
the dependencies correctly and suppressing the check.
Requested by Arfrever.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index fae25ea8a5ec..65294a065da7 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: distutils-r1.eclass @@ -86,6 +86,8 @@ esac # - no -- do not add the dependency (pure distutils package) # - bdepend -- add it to BDEPEND (the default) # - rdepend -- add it to BDEPEND+RDEPEND (when using entry_points) +# - manual -- do not add the depedency and suppress the checks +# (assumes you will take care of doing it correctly) # # This variable is effective only if DISTUTILS_OPTIONAL is disabled. # It needs to be set before the inherit line. @@ -116,7 +118,7 @@ _distutils_set_globals() { local bdep=${rdep} case ${DISTUTILS_USE_SETUPTOOLS} in - no) + no|manual) ;; bdepend) bdep+=" dev-python/setuptools[${PYTHON_USEDEP}]" @@ -436,6 +438,7 @@ distutils_enable_tests() { # incorrectly. _distutils_verify_use_setuptools() { [[ ${DISTUTILS_OPTIONAL} ]] && return + [[ ${DISTUTILS_USE_SETUPTOOLS} == manual ]] && return # ok, those are cheap greps. we can try toimprove them if we hit # false positives. |