aboutsummaryrefslogtreecommitdiff
path: root/package/python3/python3.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/python3/python3.mk')
-rw-r--r--package/python3/python3.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index 017dbd40da..8dbd0bab66 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -4,8 +4,8 @@
#
################################################################################
-PYTHON3_VERSION_MAJOR = 3.8
-PYTHON3_VERSION = $(PYTHON3_VERSION_MAJOR).5
+PYTHON3_VERSION_MAJOR = 3.9
+PYTHON3_VERSION = $(PYTHON3_VERSION_MAJOR).1
PYTHON3_SOURCE = Python-$(PYTHON3_VERSION).tar.xz
PYTHON3_SITE = https://python.org/ftp/python/$(PYTHON3_VERSION)
PYTHON3_LICENSE = Python-2.0, others
@@ -49,6 +49,12 @@ endif
PYTHON3_INSTALL_STAGING = YES
+ifeq ($(BR2_PACKAGE_PYTHON3_2TO3),y)
+PYTHON3_CONF_OPTS += --enable-lib2to3
+else
+PYTHON3_CONF_OPTS += --disable-lib2to3
+endif
+
ifeq ($(BR2_PACKAGE_PYTHON3_READLINE),y)
PYTHON3_DEPENDENCIES += readline
else
@@ -156,7 +162,6 @@ PYTHON3_CONF_OPTS += \
--with-system-ffi \
--disable-pydoc \
--disable-test-modules \
- --disable-lib2to3 \
--disable-tk \
--disable-nis \
--disable-idle3 \