distutils-r1.eclass: Ban no-op default phase implementations in EAPI 6
authorMichał Górny <mgorny@gentoo.org>
Wed, 18 Nov 2015 21:50:57 +0000 (22:50 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 28 Nov 2015 19:09:06 +0000 (20:09 +0100)
eclass/distutils-r1.eclass

index f9cff5cc35e57930d9a3e799bb167a33d15d1b42..47b09b0c7edf4b88990f43a1f805359dc760019a 100644 (file)
@@ -343,7 +343,7 @@ distutils-r1_python_prepare_all() {
 distutils-r1_python_prepare() {
        debug-print-function ${FUNCNAME} "${@}"
 
-       :
+       [[ ${EAPI} == [45] ]] || die "${FUNCNAME} is banned in EAPI 6 (it was a no-op)"
 }
 
 # @FUNCTION: distutils-r1_python_configure
@@ -352,7 +352,7 @@ distutils-r1_python_prepare() {
 distutils-r1_python_configure() {
        debug-print-function ${FUNCNAME} "${@}"
 
-       :
+       [[ ${EAPI} == [45] ]] || die "${FUNCNAME} is banned in EAPI 6 (it was a no-op)"
 }
 
 # @FUNCTION: _distutils-r1_create_setup_cfg