diff --git a/package/python3/Config.in b/package/python3/Config.in index 0c5018f0b3..3a9dd4b2f4 100644 --- a/package/python3/Config.in +++ b/package/python3/Config.in @@ -41,6 +41,11 @@ menu "core python3 modules" comment "The following modules are unusual or require extra libraries" +config BR2_PACKAGE_PYTHON3_2TO3 + bool "2to3 module" + help + code translation from python 2 to 3 + config BR2_PACKAGE_PYTHON3_BZIP2 bool "bz2 module" select BR2_PACKAGE_BZIP2 diff --git a/package/python3/python3.mk b/package/python3/python3.mk index f2516dee90..8dbd0bab66 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -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 \