diff options
author | Ørjan Malde <foxyred333@gmail.com> | 2018-12-08 16:02:49 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2018-12-08 19:00:14 +0000 |
commit | 4596fb4d859b7d03ad3cf9ea7069e19e118bf9a6 (patch) | |
tree | 0912e7e407ddad804362a416dc91ad90038bcd6c /vars | |
parent | 040bd241c3e5b7983ddb170ef9e9c57202855231 (diff) | |
download | midipix_build-4596fb4d859b7d03ad3cf9ea7069e19e118bf9a6.tar.bz2 midipix_build-4596fb4d859b7d03ad3cf9ea7069e19e118bf9a6.tar.xz |
native python2: build using sbpython2 (external build project for Python-2.7).
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
Diffstat (limited to 'vars')
-rw-r--r-- | vars/build.vars | 9 | ||||
-rw-r--r-- | vars/python2.vars | 11 |
2 files changed, 17 insertions, 3 deletions
diff --git a/vars/build.vars b/vars/build.vars index 2d145089..4b965187 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -1130,9 +1130,12 @@ patch patchutils perl python2 python3 ruby smallbasic tcl"; : ${PKG_PERL_SUBDIR:=perl-${PKG_PERL_VERSION}}; : ${PKG_PYTHON2_SHA256SUM:=304c9b202ea6fbd0a4a8e0ad3733715fbd4749f2204a9173a58ec53c32ea73e8}; : ${PKG_PYTHON2_VERSION:=2.7.14}; -: ${PKG_PYTHON2_URL:=https://www.python.org/ftp/python/${PKG_PYTHON2_VERSION}/Python-${PKG_PYTHON2_VERSION}.tgz}; -: ${PKG_PYTHON2_CONFIGURE_ARGS:="--build=x86_64 -C --enable-ipv6 --enable-shared --enable-unicode=ucs4 --host=${DEFAULT_TARGET} --prefix=${PREFIX_NATIVE}"}; -: ${PKG_PYTHON2_ENV_VARS_EXTRA:="PYTHON_FOR_BUILD=${PREFIX}/bin/python2.7.wrapper"}; +: ${PKG_PYTHON2_URL:="https://www.python.org/ftp/python/${PKG_PYTHON2_VERSION}/Python-${PKG_PYTHON2_VERSION}.tgz"}; +: ${PKG_PYTHON2_URLS_GIT:="sbpython2=${DEFAULT_GITROOT}/python/sbpython2@main"}; +: ${PKG_PYTHON2_BASE_DIR:=${BUILD_WORKDIR}/python2-native-${DEFAULT_TARGET}}; +: ${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}; diff --git a/vars/python2.vars b/vars/python2.vars new file mode 100644 index 00000000..aee9d6c6 --- /dev/null +++ b/vars/python2.vars @@ -0,0 +1,11 @@ +# +# set -o errexit -o noglob are assumed. +# + +pkg_python2_fetch_git() { + ex_rtl_fileop rm "${PKG_BASE_DIR}/sbpython2"; + ex_rtl_fetch_urls_git "${PKG_BASE_DIR}/build" "sbpython2=${DEFAULT_GITROOT}/python/sbpython2@main"; + ex_pkg_state_set "${PKG_NAME}" fetch -extract; +}; + +# vim:filetype=sh |