commit:     31ab9f718818f3839491bcc45e6760fd59c8ea83
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 11 18:53:07 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 11 18:53:07 2025 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=31ab9f71

py_build: fix EBD generation for new EAPIs

Resolves: https://github.com/pkgcore/pkgcore/issues/444
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 py_build.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/py_build.py b/py_build.py
index a639ed28..87c62a59 100644
--- a/py_build.py
+++ b/py_build.py
@@ -61,11 +61,6 @@ def prepare_pkgcore(callback, consts: bool):
         with sys_path():
             write_verinfo(cleanup_files)
 
-            # Install configuration data so pkgcore knows where to find its 
content,
-            # rather than assuming it is running from a tarball/git repo.
-            if consts:
-                write_pkgcore_lookup_configs(cleanup_files)
-
             # generate function lists so they don't need to be created on 
install
             if subprocess.call(
                 [
@@ -77,6 +72,11 @@ def prepare_pkgcore(callback, consts: bool):
             ):
                 raise Exception("Running makefile failed")
 
+            # Install configuration data so pkgcore knows where to find its 
content,
+            # rather than assuming it is running from a tarball/git repo.
+            if consts:
+                write_pkgcore_lookup_configs(cleanup_files)
+
             return callback()
     finally:
         for path in cleanup_files:

Reply via email to