diff options
author | midipix <writeonce@midipix.org> | 2021-06-14 20:42:58 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-14 20:43:42 +0000 |
commit | ece54dd361c4f7ab0bbce9f0f29b707508b3fc3d (patch) | |
tree | 3b107cf54293e666e5377d5e4d8bc208325678ad /project/config | |
parent | 59e36e13a48dc358d67443373263722639484824 (diff) | |
download | sbpython2-ece54dd361c4f7ab0bbce9f0f29b707508b3fc3d.tar.bz2 sbpython2-ece54dd361c4f7ab0bbce9f0f29b707508b3fc3d.tar.xz |
project: pydist overhaul: integrated the new m4-based logic.
Diffstat (limited to 'project/config')
-rw-r--r-- | project/config/cfgdefs.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh index 09b8f62..30ee66c 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 |