From 128cfbfe965365a0b4a22509d70cb34be15f6410 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Tue, 9 Dec 2025 23:52:46 +0700 Subject: [PATCH] Split python dev --- recipes/dev/python312/recipe.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/recipes/dev/python312/recipe.toml b/recipes/dev/python312/recipe.toml index 67cc6d402..9067b5a5e 100644 --- a/recipes/dev/python312/recipe.toml +++ b/recipes/dev/python312/recipe.toml @@ -27,6 +27,7 @@ DYNAMIC_INIT export PYTHONDONTWRITEBYTECODE=1 ARCH="${TARGET%%-*}" +OS=$(echo "${TARGET}" | cut -d - -f3-4) if [ "$TARGET" != "$COOKBOOK_HOST_TARGET" ]; then COOKBOOK_CONFIGURE_FLAGS=( @@ -50,4 +51,15 @@ if [ "${COOKBOOK_DYNAMIC}" != "1" ]; then fi cookbook_configure + +# A same file to save 60MB +(cd "${COOKBOOK_STAGE}/usr/lib/python3.12/config-3.12-$ARCH-$OS" && \ + rm -f libpython3.12.a && ln -s ../../libpython3.12.a) """ + +[[optional-packages]] +name = "dev" +files = [ + "usr/lib/python3.12/config-*/**", + "usr/lib/libpython*.a" +]