|
@@ -4,8 +4,8 @@
|
|
#
|
|
#
|
|
################################################################################
|
|
################################################################################
|
|
|
|
|
|
-PYTHON3_VERSION_MAJOR = 3.11
|
|
|
|
-PYTHON3_VERSION = $(PYTHON3_VERSION_MAJOR).6
|
|
|
|
|
|
+PYTHON3_VERSION_MAJOR = 3.12
|
|
|
|
+PYTHON3_VERSION = $(PYTHON3_VERSION_MAJOR).1
|
|
PYTHON3_SOURCE = Python-$(PYTHON3_VERSION).tar.xz
|
|
PYTHON3_SOURCE = Python-$(PYTHON3_VERSION).tar.xz
|
|
PYTHON3_SITE = https://python.org/ftp/python/$(PYTHON3_VERSION)
|
|
PYTHON3_SITE = https://python.org/ftp/python/$(PYTHON3_VERSION)
|
|
PYTHON3_LICENSE = Python-2.0, others
|
|
PYTHON3_LICENSE = Python-2.0, others
|
|
@@ -22,12 +22,8 @@ HOST_PYTHON3_CONF_OPTS += \
|
|
--disable-sqlite3 \
|
|
--disable-sqlite3 \
|
|
--disable-tk \
|
|
--disable-tk \
|
|
--with-expat=system \
|
|
--with-expat=system \
|
|
- --disable-codecs-cjk \
|
|
|
|
- --disable-nis \
|
|
|
|
- --enable-unicodedata \
|
|
|
|
--disable-test-modules \
|
|
--disable-test-modules \
|
|
--disable-idle3 \
|
|
--disable-idle3 \
|
|
- --disable-uuid \
|
|
|
|
--disable-ossaudiodev
|
|
--disable-ossaudiodev
|
|
|
|
|
|
# Make sure that LD_LIBRARY_PATH overrides -rpath.
|
|
# Make sure that LD_LIBRARY_PATH overrides -rpath.
|
|
@@ -37,6 +33,15 @@ HOST_PYTHON3_CONF_OPTS += \
|
|
# communicate over the network during the build.
|
|
# communicate over the network during the build.
|
|
HOST_PYTHON3_CONF_ENV += \
|
|
HOST_PYTHON3_CONF_ENV += \
|
|
LDFLAGS="$(HOST_LDFLAGS) -Wl,--enable-new-dtags" \
|
|
LDFLAGS="$(HOST_LDFLAGS) -Wl,--enable-new-dtags" \
|
|
|
|
+ py_cv_module_nis=n/a \
|
|
|
|
+ py_cv_module_unicodedata=yes \
|
|
|
|
+ py_cv_module__codecs_cn=n/a \
|
|
|
|
+ py_cv_module__codecs_hk=n/a \
|
|
|
|
+ py_cv_module__codecs_iso2022=n/a \
|
|
|
|
+ py_cv_module__codecs_jp=n/a \
|
|
|
|
+ py_cv_module__codecs_kr=n/a \
|
|
|
|
+ py_cv_module__codecs_tw=n/a \
|
|
|
|
+ py_cv_module__uuid=n/a \
|
|
ac_cv_prog_HAS_HG=/bin/false
|
|
ac_cv_prog_HAS_HG=/bin/false
|
|
|
|
|
|
PYTHON3_DEPENDENCIES = host-python3 libffi
|
|
PYTHON3_DEPENDENCIES = host-python3 libffi
|
|
@@ -51,7 +56,7 @@ HOST_PYTHON3_DEPENDENCIES = \
|
|
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_BZIP2),y)
|
|
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_BZIP2),y)
|
|
HOST_PYTHON3_DEPENDENCIES += host-bzip2
|
|
HOST_PYTHON3_DEPENDENCIES += host-bzip2
|
|
else
|
|
else
|
|
-HOST_PYTHON3_CONF_OPTS += --disable-bzip2
|
|
|
|
|
|
+HOST_PYTHON3_CONF_ENV += py_cv_module__bz2=n/a
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_CURSES),y)
|
|
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_CURSES),y)
|
|
@@ -63,7 +68,9 @@ endif
|
|
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_SSL),y)
|
|
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_SSL),y)
|
|
HOST_PYTHON3_DEPENDENCIES += host-openssl
|
|
HOST_PYTHON3_DEPENDENCIES += host-openssl
|
|
else
|
|
else
|
|
-HOST_PYTHON3_CONF_OPTS += --disable-openssl
|
|
|
|
|
|
+HOST_PYTHON3_CONF_ENV += \
|
|
|
|
+ py_cv_module__hashlib=n/a \
|
|
|
|
+ py_cv_module__ssl=n/a
|
|
endif
|
|
endif
|
|
|
|
|
|
PYTHON3_INSTALL_STAGING = YES
|
|
PYTHON3_INSTALL_STAGING = YES
|
|
@@ -77,13 +84,14 @@ endif
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_BERKELEYDB),y)
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_BERKELEYDB),y)
|
|
PYTHON3_DEPENDENCIES += berkeleydb
|
|
PYTHON3_DEPENDENCIES += berkeleydb
|
|
else
|
|
else
|
|
-PYTHON3_CONF_OPTS += --disable-berkeleydb
|
|
|
|
|
|
+PYTHON3_CONF_ENV += py_cv_module__dbm=n/a
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_READLINE),y)
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_READLINE),y)
|
|
|
|
+PYTHON3_CONF_OPTS += --with-readline
|
|
PYTHON3_DEPENDENCIES += readline
|
|
PYTHON3_DEPENDENCIES += readline
|
|
else
|
|
else
|
|
-PYTHON3_CONF_OPTS += --disable-readline
|
|
|
|
|
|
+PYTHON3_CONF_OPTS += --without-readline
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_CURSES),y)
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_CURSES),y)
|
|
@@ -94,9 +102,9 @@ endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_DECIMAL),y)
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_DECIMAL),y)
|
|
PYTHON3_DEPENDENCIES += mpdecimal
|
|
PYTHON3_DEPENDENCIES += mpdecimal
|
|
-PYTHON3_CONF_OPTS += --with-libmpdec=system
|
|
|
|
|
|
+PYTHON3_CONF_OPTS += --with-system-libmpdec
|
|
else
|
|
else
|
|
-PYTHON3_CONF_OPTS += --with-libmpdec=none
|
|
|
|
|
|
+PYTHON3_CONF_ENV += py_cv_module__decimal=n/a
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_PYEXPAT),y)
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_PYEXPAT),y)
|
|
@@ -116,44 +124,50 @@ ifeq ($(BR2_PACKAGE_PYTHON3_SSL),y)
|
|
PYTHON3_DEPENDENCIES += openssl
|
|
PYTHON3_DEPENDENCIES += openssl
|
|
PYTHON3_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr
|
|
PYTHON3_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr
|
|
else
|
|
else
|
|
-PYTHON3_CONF_OPTS += --disable-openssl
|
|
|
|
|
|
+PYTHON3_CONF_ENV += \
|
|
|
|
+ py_cv_module__hashlib=n/a \
|
|
|
|
+ py_cv_module__ssl=n/a
|
|
endif
|
|
endif
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_PYTHON3_CODECSCJK),y)
|
|
ifneq ($(BR2_PACKAGE_PYTHON3_CODECSCJK),y)
|
|
-PYTHON3_CONF_OPTS += --disable-codecs-cjk
|
|
|
|
|
|
+PYTHON3_CONF_ENV += \
|
|
|
|
+ py_cv_module__codecs_cn=n/a \
|
|
|
|
+ py_cv_module__codecs_hk=n/a \
|
|
|
|
+ py_cv_module__codecs_iso2022=n/a \
|
|
|
|
+ py_cv_module__codecs_jp=n/a \
|
|
|
|
+ py_cv_module__codecs_kr=n/a \
|
|
|
|
+ py_cv_module__codecs_tw=n/a
|
|
endif
|
|
endif
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_PYTHON3_UNICODEDATA),y)
|
|
ifneq ($(BR2_PACKAGE_PYTHON3_UNICODEDATA),y)
|
|
-PYTHON3_CONF_OPTS += --disable-unicodedata
|
|
|
|
|
|
+PYTHON3_CONF_ENV += py_cv_module_unicodedata=n/a
|
|
endif
|
|
endif
|
|
|
|
|
|
# Disable auto-detection of uuid.h (util-linux)
|
|
# Disable auto-detection of uuid.h (util-linux)
|
|
# which would add _uuid module support, instead
|
|
# which would add _uuid module support, instead
|
|
# default to the pure python implementation
|
|
# default to the pure python implementation
|
|
-PYTHON3_CONF_OPTS += --disable-uuid
|
|
|
|
|
|
+PYTHON3_CONF_ENV += py_cv_module__uuid=n/a
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_BZIP2),y)
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_BZIP2),y)
|
|
PYTHON3_DEPENDENCIES += bzip2
|
|
PYTHON3_DEPENDENCIES += bzip2
|
|
else
|
|
else
|
|
-PYTHON3_CONF_OPTS += --disable-bzip2
|
|
|
|
|
|
+PYTHON3_CONF_ENV += py_cv_module__bz2=n/a
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_XZ),y)
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_XZ),y)
|
|
PYTHON3_DEPENDENCIES += xz
|
|
PYTHON3_DEPENDENCIES += xz
|
|
else
|
|
else
|
|
-PYTHON3_CONF_OPTS += --disable-xz
|
|
|
|
|
|
+PYTHON3_CONF_ENV += py_cv_module__lzma=n/a
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_ZLIB),y)
|
|
ifeq ($(BR2_PACKAGE_PYTHON3_ZLIB),y)
|
|
PYTHON3_DEPENDENCIES += zlib
|
|
PYTHON3_DEPENDENCIES += zlib
|
|
else
|
|
else
|
|
-PYTHON3_CONF_OPTS += --disable-zlib
|
|
|
|
|
|
+PYTHON3_CONF_ENV += py_cv_module_zlib=n/a
|
|
endif
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_PYTHON3_OSSAUDIODEV),y)
|
|
|
|
-PYTHON3_CONF_OPTS += --enable-ossaudiodev
|
|
|
|
-else
|
|
|
|
-PYTHON3_CONF_OPTS += --disable-ossaudiodev
|
|
|
|
|
|
+ifneq ($(BR2_PACKAGE_PYTHON3_OSSAUDIODEV),y)
|
|
|
|
+PYTHON3_CONF_ENV += py_cv_module_ossaudiodev=n/a
|
|
endif
|
|
endif
|
|
|
|
|
|
# Make python believe we don't have 'hg', so that it doesn't try to
|
|
# Make python believe we don't have 'hg', so that it doesn't try to
|
|
@@ -163,6 +177,7 @@ PYTHON3_CONF_ENV += \
|
|
ac_cv_file__dev_ptmx=yes \
|
|
ac_cv_file__dev_ptmx=yes \
|
|
ac_cv_file__dev_ptc=yes \
|
|
ac_cv_file__dev_ptc=yes \
|
|
ac_cv_working_tzset=yes \
|
|
ac_cv_working_tzset=yes \
|
|
|
|
+ py_cv_module_nis=n/a \
|
|
ac_cv_prog_HAS_HG=/bin/false
|
|
ac_cv_prog_HAS_HG=/bin/false
|
|
|
|
|
|
# GCC is always compliant with IEEE754
|
|
# GCC is always compliant with IEEE754
|
|
@@ -190,7 +205,6 @@ PYTHON3_CONF_OPTS += \
|
|
--disable-pydoc \
|
|
--disable-pydoc \
|
|
--disable-test-modules \
|
|
--disable-test-modules \
|
|
--disable-tk \
|
|
--disable-tk \
|
|
- --disable-nis \
|
|
|
|
--disable-idle3 \
|
|
--disable-idle3 \
|
|
--disable-pyc-build
|
|
--disable-pyc-build
|
|
|
|
|