summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-16 12:10:36 +0000
committermidipix <writeonce@midipix.org>2021-04-16 12:10:36 +0000
commitdf61f84b8db5abc508a15bb9809ea25d35b01232 (patch)
tree53c8c426a9c224e5799fe3e2e76d75f5408c5d1d
parent12a65945c559f52f3d0eede98e8ddb59238a77f4 (diff)
downloadsbpython2-df61f84b8db5abc508a15bb9809ea25d35b01232.tar.bz2
sbpython2-df61f84b8db5abc508a15bb9809ea25d35b01232.tar.xz
project: config.project: define mb_package.
-rw-r--r--config.project2
-rw-r--r--project/config/cfgdefs.sh8
2 files changed, 9 insertions, 1 deletions
diff --git a/config.project b/config.project
index 877511c..cf40fb7 100644
--- a/config.project
+++ b/config.project
@@ -1,5 +1,5 @@
# project
-mb_package=
+mb_package=@
mb_require_out_of_tree=no
mb_require_source_dir=yes
mb_custom_install_headers=no
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index eb6021a..09b8f62 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -84,6 +84,14 @@ cfgdefs_detect_python_version()
python_ver="$python_major.$python_minor"
+ if [ "$mb_package" = '@' ]; then
+ mb_package=
+ fi
+
+ if [ "$mb_nickname" = '@' ]; then
+ mb_nickname=
+ fi
+
[ -z "$mb_package" ] && mb_package='python'"$python_ver"
[ -z "$mb_nickname" ] && mb_nickname="$mb_package"
[ -z "$mb_pkgname" ] && mb_pkgname="$mb_package"