summaryrefslogtreecommitdiff
path: root/project/config
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-15 12:43:10 +0000
committermidipix <writeonce@midipix.org>2021-06-15 12:43:10 +0000
commit107b6416edf602859578e7592abb0c4e457936dc (patch)
treeca300d63c986b3548f1ea848d0e326d6f6449918 /project/config
parent0134b5365a52bf5cf4efdf2b00b1bc16f54ec327 (diff)
downloadsbpython3-107b6416edf602859578e7592abb0c4e457936dc.tar.bz2
sbpython3-107b6416edf602859578e7592abb0c4e457936dc.tar.xz
project: pydist overhaul: integrated the new m4-based logic.
Diffstat (limited to 'project/config')
-rw-r--r--project/config/cfgdefs.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index c76629d..6826af7 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -82,6 +82,18 @@ cfgdefs_detect_python_version()
exit 2
fi
+ pydist_macros="$mb_project_dir/project/pydist.m4"
+ pydist_helper="$mb_project_dir/sofort/core/modern.m4"
+ pydist_srclst="$mb_project_dir/project/variants/$python_major.$python_minor.$python_micro/pydist.in"
+
+ if ! [ -f "$pydist_srclst" ]; then
+ exit 2
+ fi
+
+ if ! m4 "$pydist_helper" "$pydist_macros" "$pydist_srclst" > pydist.mk ; then
+ exit 2
+ fi
+
python_ver="$python_major.$python_minor"
if [ "$mb_package" = '@' ]; then