diff options
author | midipix <writeonce@midipix.org> | 2018-12-18 21:14:18 -0500 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2018-12-19 12:03:29 +0000 |
commit | 856fc72d7fb862c40a963f9e899df684d0aa1a21 (patch) | |
tree | ae28fb0e1a5b2d82fdd29b52cc0bd0e07cd7c862 /vars | |
parent | 205f8b2c45b89accdecd2315290dbdda4f62db7e (diff) | |
download | midipix_build-856fc72d7fb862c40a963f9e899df684d0aa1a21.tar.bz2 midipix_build-856fc72d7fb862c40a963f9e899df684d0aa1a21.tar.xz |
native python3: build using sbpython3 (external build project for Python-3.x).
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
Diffstat (limited to 'vars')
-rw-r--r-- | vars/build.vars | 13 | ||||
-rw-r--r-- | vars/python3.vars | 15 |
2 files changed, 12 insertions, 16 deletions
diff --git a/vars/build.vars b/vars/build.vars index bfbcf9f9..730152d8 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -1140,11 +1140,14 @@ bdwgc bison chicken cparser diffutils flex lunix m4 make mandoc patch patchutils : ${PKG_PYTHON2_BUILD_DIR:=build/python2}; : ${PKG_PYTHON2_CONFIGURE:=build/sbpython2/configure}; : ${PKG_PYTHON2_CONFIGURE_ARGS:="--source-dir=../../Python-${PKG_PYTHON2_VERSION} --sysroot=${PREFIX_NATIVE} --prefix= --target=${DEFAULT_TARGET}"}; -: ${PKG_PYTHON3_SHA256SUM:=687e067d9f391da645423c7eda8205bae9d35edc0c76ef5218dcbe4cc770d0d7}; -: ${PKG_PYTHON3_VERSION:=3.5.1}; -: ${PKG_PYTHON3_URL:=https://www.python.org/ftp/python/${PKG_PYTHON3_VERSION}/Python-${PKG_PYTHON3_VERSION}.tgz}; -: ${PKG_PYTHON3_CONFIGURE_ARGS:="--build=x86_64 -C --enable-ipv6 --enable-shared --host=${DEFAULT_TARGET} --prefix=${PREFIX_NATIVE} --with-system-expat --with-system-ffi --without-ensurepip"}; -: ${PKG_PYTHON3_ENV_VARS_EXTRA:="BLDSHARED=${DEFAULT_TARGET}-gcc -shared -mout-dsolib --sysroot=${PREFIX_NATIVE}:CC=${DEFAULT_TARGET}-gcc:CFLAGS=--sysroot=${PREFIX_NATIVE}:CPPFLAGS=--sysroot=${PREFIX_NATIVE}:LDFLAGS=-L${PREFIX_NATIVE}/lib"}: +: ${PKG_PYTHON3_SHA256SUM:=ab6193af1921b30f587b302fe385268510e80187ca83ca82d2bfe7ab544c6f91}; +: ${PKG_PYTHON3_VERSION:=3.6.3}; +: ${PKG_PYTHON3_URL:="https://www.python.org/ftp/python/${PKG_PYTHON3_VERSION}/Python-${PKG_PYTHON3_VERSION}.tgz"}; +: ${PKG_PYTHON3_URLS_GIT:="sbpython3=${DEFAULT_GITROOT}/python/sbpython3@main"}; +: ${PKG_PYTHON3_BASE_DIR:=${BUILD_WORKDIR}/python3-native-${DEFAULT_TARGET}}; +: ${PKG_PYTHON3_BUILD_DIR:=build/python3}; +: ${PKG_PYTHON3_CONFIGURE:=build/sbpython3/configure}; +: ${PKG_PYTHON3_CONFIGURE_ARGS:="--source-dir=../../Python-${PKG_PYTHON3_VERSION} --sysroot=${PREFIX_NATIVE} --prefix= --target=${DEFAULT_TARGET}"}; : ${PKG_PYTHON3_INSTALL_FILES:="@python3=bin/python"}; : ${PKG_PYTHON3_SUBDIR:=Python-${PKG_PYTHON3_VERSION}}; : ${PKG_RUBY_SHA256SUM:=ba5ba60e5f1aa21b4ef8e9bf35b9ddb57286cb546aac4b5a28c71f459467e507}; diff --git a/vars/python3.vars b/vars/python3.vars index 3c3fb58f..da82bfcd 100644 --- a/vars/python3.vars +++ b/vars/python3.vars @@ -2,17 +2,10 @@ # set -o errexit -o noglob are assumed. # -pkg_python3_configure_pre() { - (ex_rtl_fileop cd "../${PKG_SUBDIR}" && autoconf); - (unset AR BLDSHARED CC CFLAGS CPPFLAGS CXX LDFLAGS RANLIB; - ex_rtl_fileop mv config.cache "../${PKG_SUBDIR}/config.cache"; - "../${PKG_SUBDIR}/configure"; - make _FIP=Programs/host_freeze_importlib Programs/host_freeze_importlib \ - BUILDPYTHON=hostpython hostpython \ - PGEN=Parser/hostpgen Parser/hostpgen; - make distclean); - ex_rtl_fileop mv "../${PKG_SUBDIR}/config.cache" .; - ex_rtl_fileop rm "../${PKG_SUBDIR}/Modules/zlib"; +pkg_python3_fetch_git() { + ex_rtl_fileop rm "${PKG_BASE_DIR}/sbpython3"; + ex_rtl_fetch_urls_git "${PKG_BASE_DIR}/build" "sbpython3=${DEFAULT_GITROOT}/python/sbpython3@main"; + ex_pkg_state_set "${PKG_NAME}" fetch -extract; }; # vim:filetype=sh |