summaryrefslogtreecommitdiff
path: root/lang/python/python3
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2023-10-04 16:19:07 -0300
committerJosef Schlehofer <pepe.schlehofer@gmail.com>2023-10-07 19:33:30 +0200
commitfea0f7a9e82b156e6d53d6d2ab18af387b2298e8 (patch)
tree467b29830cba560b2e6f0e7bc887fba6b50c35e2 /lang/python/python3
parent52ec0079e92c47d2ad1fb455056cad8e3926125e (diff)
python3: avoid unnecessary rebuilds
Move the order in which BuildPackage is called, so that the libpython package is built ahead of the module packages, to avoid forcing a clean-build of the package when 'make package/python3/compile' is called a second time without changes. The library must be built first, so that when the buildsystem checks for ABI version changes using libpython3.version, its timestamp should be older than the dependent package's STAMP_PREPARED file. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com> (cherry picked from commit c230d7bd7f8a794032d2414588f1cdfc1a5ec74e)
Diffstat (limited to 'lang/python/python3')
-rw-r--r--lang/python/python3/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile
index 4d4b922ae..762b11b9b 100644
--- a/lang/python/python3/Makefile
+++ b/lang/python/python3/Makefile
@@ -390,12 +390,6 @@ endef
$(eval $(call HostBuild))
-$(foreach package, $(PYTHON3_PACKAGES), \
- $(eval $(call Py3Package,$(package))) \
- $(eval $(call BuildPackage,$(package))) \
- $(eval $(call BuildPackage,$(package)-src)) \
-)
-
$(eval $(call BuildPackage,libpython3))
$(eval $(call Py3Package,python3-base))
@@ -408,3 +402,9 @@ $(eval $(call BuildPackage,python3))
$(eval $(call BuildPackage,python3-base-src))
$(eval $(call BuildPackage,python3-light-src))
+
+$(foreach package, $(PYTHON3_PACKAGES), \
+ $(eval $(call Py3Package,$(package))) \
+ $(eval $(call BuildPackage,$(package))) \
+ $(eval $(call BuildPackage,$(package)-src)) \
+)