commit:     a506f09bb026fd72d8cb202de079c8b314320aaf
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 30 15:59:17 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Dec 30 17:23:47 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a506f09b

dev-python/setuptools: Apply user patches prior to unvendoring

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/setuptools/setuptools-65.6.3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/setuptools/setuptools-65.6.3.ebuild 
b/dev-python/setuptools/setuptools-65.6.3.ebuild
index d3dbdaf6c086..147c6b523a2f 100644
--- a/dev-python/setuptools/setuptools-65.6.3.ebuild
+++ b/dev-python/setuptools/setuptools-65.6.3.ebuild
@@ -79,6 +79,8 @@ src_prepare() {
                "${FILESDIR}"/setuptools-62.4.0-py-compile.patch
        )
 
+       distutils-r1_src_prepare
+
        # remove bundled dependencies, setuptools will switch to system deps
        # automatically
        rm -r */_vendor || die
@@ -89,8 +91,6 @@ src_prepare() {
                -e 's:from \w*[.]\+extern ::' -e 's:\w*[.]\+extern[.]::' \
                -i {} + || die
 
-       distutils-r1_src_prepare
-
        export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
 }
 

Reply via email to