summaryrefslogtreecommitdiffhomepage
path: root/groups.d/221.native_packages_dev.d/python3.package
diff options
context:
space:
mode:
Diffstat (limited to 'groups.d/221.native_packages_dev.d/python3.package')
-rw-r--r--groups.d/221.native_packages_dev.d/python3.package17
1 files changed, 17 insertions, 0 deletions
diff --git a/groups.d/221.native_packages_dev.d/python3.package b/groups.d/221.native_packages_dev.d/python3.package
new file mode 100644
index 00000000..c816c795
--- /dev/null
+++ b/groups.d/221.native_packages_dev.d/python3.package
@@ -0,0 +1,17 @@
+: ${PKG_PYTHON3_DEPENDS:="bzip2 curl expat gdbm libffi libressl libz ncursesw readline sqlite3 util_linux xz"};
+: ${PKG_PYTHON3_SHA256SUM:=f8d82e7572c86ec9d55c8627aae5040124fd2203af400c383c821b980306ee6b};
+: ${PKG_PYTHON3_VERSION:=3.7.10};
+: ${PKG_PYTHON3_URL:="https://www.python.org/ftp/python/${PKG_PYTHON3_VERSION}/Python-${PKG_PYTHON3_VERSION}.tar.xz"};
+: ${PKG_PYTHON3_URLS_GIT:="build/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_CONFIGURE_TYPE:="sofort"};
+: ${PKG_PYTHON3_SOFORT_NATIVE_CFLAGS_EXTRA:="-std=c99 -D_XOPEN_SOURCE=700"};
+: ${PKG_PYTHON3_INSTALL_FILES_V2:="@python3=bin/python"};
+: ${PKG_PYTHON3_SUBDIR:=Python-${PKG_PYTHON3_VERSION}};
+
+ex_pkg_register "python3" "${RTL_FILEOP_SOURCE_FNAME}" "native_packages";
+
+# vim:filetype=sh textwidth=0