diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-04-07 10:16:54 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-04-09 23:55:51 +0200 |
commit | 671d5b30bed720933f0fe66cc032c441c231d18d (patch) | |
tree | ee07dff42c345dc183053e3e1da92ecb5878dfdd /eclass | |
parent | distutils-r1.eclass: Remove support for EAPIs prior to 6 (diff) | |
download | gentoo-671d5b30bed720933f0fe66cc032c441c231d18d.tar.gz gentoo-671d5b30bed720933f0fe66cc032c441c231d18d.tar.bz2 gentoo-671d5b30bed720933f0fe66cc032c441c231d18d.zip |
python-r1.eclass: Remove support for EAPIs prior to 6
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/python-r1.eclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index f7beb3006499..1eb68270a0b3 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -7,7 +7,7 @@ # @AUTHOR: # Author: Michał Górny <mgorny@gentoo.org> # Based on work of: Krzysztof Pawlik <nelchael@gentoo.org> -# @SUPPORTED_EAPIS: 5 6 7 +# @SUPPORTED_EAPIS: 6 7 # @BLURB: A common, simple eclass for Python packages. # @DESCRIPTION: # A common eclass providing helper functions to build and install @@ -30,11 +30,10 @@ # https://dev.gentoo.org/~mgorny/python-guide/ case "${EAPI:-0}" in - 0|1|2|3|4) + [0-5]) die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" ;; - 5|6|7) - # EAPI=5 is required for sane USE_EXPAND dependencies + [6-7]) ;; *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" @@ -49,7 +48,6 @@ elif [[ ${_PYTHON_ANY_R1} ]]; then die 'python-r1.eclass can not be used with python-any-r1.eclass.' fi -[[ ${EAPI} == [45] ]] && inherit eutils inherit multibuild python-utils-r1 fi |