From 89f0555c3d9eaf9cc5893f8ed691d72ce262812d Mon Sep 17 00:00:00 2001 From: Jian-Hong Pan Date: Mon, 4 Sep 2023 12:33:08 +0800 Subject: [PATCH] Cleanup tests and C extensions of unused Python version Cleanup tests and C extensions of unused Python version to reduce flatpak size. --- build-aux/flatpak/org.endlessos.Key.Devel.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build-aux/flatpak/org.endlessos.Key.Devel.json b/build-aux/flatpak/org.endlessos.Key.Devel.json index 75cfb92..d3149fe 100644 --- a/build-aux/flatpak/org.endlessos.Key.Devel.json +++ b/build-aux/flatpak/org.endlessos.Key.Devel.json @@ -70,6 +70,15 @@ "branch" : "main" } ] + }, + { + "name" : "python3-klobri-cleanup", + "buildsystem" : "simple", + "build-commands" : [ + "find ${KOLIBRI_MODULE_PATH}/dist/cext -type d -name cp* -not -path ${KOLIBRI_MODULE_PATH}/dist/cext/cp39 -exec rm -rf {} +", + "rm -rf ${KOLIBRI_MODULE_PATH}/dist/cext/*/Windows", + "find ${KOLIBRI_MODULE_PATH}/dist -type d -name *test* -not -path ${KOLIBRI_MODULE_PATH}/dist/django/test -exec rm -rf {} +" + ] } ] }