distutils-r1.eclass: Use default_src_prepare to apply patches in EAPI 6
authorMichał Górny <mgorny@gentoo.org>
Wed, 18 Nov 2015 21:44:54 +0000 (22:44 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 28 Nov 2015 19:09:06 +0000 (20:09 +0100)
eclass/distutils-r1.eclass

index 256c893f3b170c29479c086a57272572ca9ba534..f9cff5cc35e57930d9a3e799bb167a33d15d1b42 100644 (file)
@@ -312,9 +312,12 @@ _distutils-r1_disable_ez_setup() {
 distutils-r1_python_prepare_all() {
        debug-print-function ${FUNCNAME} "${@}"
 
-       [[ ${PATCHES} ]] && epatch "${PATCHES[@]}"
-
-       epatch_user
+       if [[ ${EAPI} != [45] ]]; then
+               default
+       else
+               [[ ${PATCHES} ]] && epatch "${PATCHES[@]}"
+               epatch_user
+       fi
 
        # by default, use in-source build if python_prepare() is used
        if [[ ! ${DISTUTILS_IN_SOURCE_BUILD+1} ]]; then