package/python-setuptools: bump to version 60.2.0 and split python2 version
PATCH 1/3 package/python-setuptools: bump to version 60.2.0 and split python2 version
Python setuptools 44.0 is not compatible with python 3.10. Unfortunately, python-setuptools 60.2.0 is not compatible with python2. As Buildroot is not ready to end python2 support, the python-setuptools package must accommodate both the old version for python2 and the new version for python3.10.
Changes include:
- Add two new directories: package/python-setuptools/44.0.0 and package/python-setuptools/60.2.0
- Add the appropriate patch and hash files to each directory.
- Modify python-setuptools.mk to support both setuptools 44.0 and 60.2.0 (setuptools 60.2.0 does not have a .zip on pypi anymore, only a tar.gz)
- Point the symlinks in package/python3-setuptools to the files in package/python-setuptools/60.2.0/
---
.../{ => 44.0.0}/0001-add-executable.patch | 0
.../{ => 44.0.0}/python-setuptools.hash | 0
.../60.2.0/0001-add-executable.patch | 72 +++++++++++++++++++
.../60.2.0/python-setuptools.hash | 4 ++
.../python-setuptools/python-setuptools.mk | 11 ++-
.../0001-add-executable.patch | 2 +-
.../python3-setuptools.hash | 2 +-
.../python3-setuptools/python3-setuptools.mk | 14 ++--
8 files changed, 91 insertions(+), 14 deletions(-)
rename package/python-setuptools/{ => 44.0.0}/0001-add-executable.patch (100%)
rename package/python-setuptools/{ => 44.0.0}/python-setuptools.hash (100%)
create mode 100644 package/python-setuptools/60.2.0/0001-add-executable.patch
create mode 100644 package/python-setuptools/60.2.0/python-setuptools.hashpackage/python-setuptools/44.0.0/0001-add-executable.patch renamed from package/python-setuptools/0001-add-executable.patch +0 -0
package/python-setuptools/44.0.0/python-setuptools.hash renamed from package/python-setuptools/python-setuptools.hash +0 -0
package/python-setuptools/60.2.0/0001-add-executable.patch new file +72 -0
72 lines not on this page · raw message
package/python-setuptools/60.2.0/python-setuptools.hash new file +4 -0
@@ -0,0 +1,4 @@ +# From https://pypi.org/pypi/setuptools/json +md5 3638c36eaf67f24bacb147c011fe6d30 setuptools-60.2.0.tar.gz +sha256 675fcebecb43c32eb930481abf907619137547f4336206e4d673180242e1a278 setuptools-60.2.0.tar.gz +sha256 db3f0246b1f9278f15845b99fec478b8b506eb76487993722f8c6e254285faf8 LICENSE
package/python-setuptools/python-setuptools.mk +9 -2
@@ -4,16 +4,22 @@ # ################################################################################ -# Please keep in sync with -# package/python3-setuptools/python3-setuptools.mk +ifeq ($(BR2_PACKAGE_PYTHON),y) PYTHON_SETUPTOOLS_VERSION = 44.0.0 PYTHON_SETUPTOOLS_SOURCE = setuptools-$(PYTHON_SETUPTOOLS_VERSION).zip PYTHON_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/b0/f3/44da7482ac6da3f36f68e253cb04de37365b3dba9036a3c70773b778b485 +else # Python3 +PYTHON_SETUPTOOLS_VERSION = 60.2.0 +PYTHON_SETUPTOOLS_SOURCE = setuptools-$(PYTHON3_SETUPTOOLS_VERSION).tar.gz +PYTHON_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/e6/e2/f2bfdf364e016f7a464db709ea40d1101c4c5a463dd7019dae0a42dbd1c6 +endif PYTHON_SETUPTOOLS_LICENSE = MIT PYTHON_SETUPTOOLS_LICENSE_FILES = LICENSE PYTHON_SETUPTOOLS_CPE_ID_VENDOR = python PYTHON_SETUPTOOLS_CPE_ID_PRODUCT = setuptools PYTHON_SETUPTOOLS_SETUP_TYPE = setuptools + +ifeq ($(BR2_PACKAGE_PYTHON),y) HOST_PYTHON_SETUPTOOLS_NEEDS_HOST_PYTHON = python2 define PYTHON_SETUPTOOLS_EXTRACT_CMDS
@@ -27,6 +33,7 @@ define HOST_PYTHON_SETUPTOOLS_EXTRACT_CMDS mv $(@D)/setuptools-$(PYTHON_SETUPTOOLS_VERSION)/* $(@D) $(RM) -r $(@D)/setuptools-$(PYTHON_SETUPTOOLS_VERSION) endef +endif $(eval $(python-package)) $(eval $(host-python-package))
package/python3-setuptools/0001-add-executable.patch +1 -1
@@ -1 +1 @@ -../python-setuptools/0001-add-executable.patch +../python-setuptools/60.2.0/0001-add-executable.patch
package/python3-setuptools/python3-setuptools.hash +1 -1
@@ -1 +1 @@ -../python-setuptools/python-setuptools.hash +../python-setuptools/60.2.0/python-setuptools.hash
package/python3-setuptools/python3-setuptools.mk +4 -10
@@ -6,21 +6,15 @@ # Please keep in sync with # package/python-setuptools/python-setuptools.mk -PYTHON3_SETUPTOOLS_VERSION = 44.0.0 -PYTHON3_SETUPTOOLS_SOURCE = setuptools-$(PYTHON3_SETUPTOOLS_VERSION).zip -PYTHON3_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/b0/f3/44da7482ac6da3f36f68e253cb04de37365b3dba9036a3c70773b778b485 +PYTHON3_SETUPTOOLS_VERSION = 60.2.0 +PYTHON3_SETUPTOOLS_SOURCE = setuptools-$(PYTHON3_SETUPTOOLS_VERSION).tar.gz +PYTHON3_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/9b/be/13f54335c7dba713b0e97e11e7a41db3df4a85073d6c5a6e7f6468b22ee2 PYTHON3_SETUPTOOLS_LICENSE = MIT PYTHON3_SETUPTOOLS_LICENSE_FILES = LICENSE PYTHON3_SETUPTOOLS_CPE_ID_VENDOR = python PYTHON3_SETUPTOOLS_CPE_ID_PRODUCT = setuptools PYTHON3_SETUPTOOLS_SETUP_TYPE = setuptools -HOST_PYTHON3_SETUPTOOLS_DL_SUBDIR = python-setuptools HOST_PYTHON3_SETUPTOOLS_NEEDS_HOST_PYTHON = python3 - -define HOST_PYTHON3_SETUPTOOLS_EXTRACT_CMDS - $(UNZIP) -d $(@D) $(HOST_PYTHON3_SETUPTOOLS_DL_DIR)/$(PYTHON3_SETUPTOOLS_SOURCE) - mv $(@D)/setuptools-$(PYTHON3_SETUPTOOLS_VERSION)/* $(@D) - $(RM) -r $(@D)/setuptools-$(PYTHON3_SETUPTOOLS_VERSION) -endef +HOST_PYTHON3_SETUPTOOLS_DL_SUBDIR = python-setuptools $(eval $(host-python-package))
Signature · 6 lines
2.33.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/3 package/alsa-lib: bump to version 1.2.6
- Drop upstream patches
- Add a new patch: 0002-fix-PyTuple_SET_ITEM-usage-no-return-value.patch which fixes python 3.10 compatibility.
--- ...Tuple_SET_ITEM-usage-no-return-value.patch | 70 +++++++++++++++++++ .../0002-fix-build-with-disable-ucm.patch | 43 ------------ ...3-control-empty-fix-the-static-build.patch | 29 -------- package/alsa-lib/alsa-lib.hash | 2 +- package/alsa-lib/alsa-lib.mk | 2 +- 5 files changed, 72 insertions(+), 74 deletions(-) create mode 100644 package/alsa-lib/0002-fix-PyTuple_SET_ITEM-usage-no-return-value.patch delete mode 100644 package/alsa-lib/0002-fix-build-with-disable-ucm.patch delete mode 100644 package/alsa-lib/0003-control-empty-fix-the-static-build.patch
package/alsa-lib/0002-fix-PyTuple_SET_ITEM-usage-no-return-value.patch new file +70 -0
@@ -0,0 +1,70 @@ +From 1da2ede2d8b01a8851648e774a4c3c5779c0bafa Mon Sep 17 00:00:00 2001 +From: Adam Duskett <[email protected]> +Date: Tue, 7 Dec 2021 13:55:54 -0800 +Subject: [PATCH] Fix PyTuple_SET_ITEM() usage - no return value + +As noted in bpo-30459 (link bellow) the PyTuple_SET_ITEM() macro +has not a return value. Make the code compatible with python 3.10. + +Link: https://bugs.python.org/issue30459 +Signed-off-by: Adam Duskett <[email protected]> +--- + modules/mixer/simple/python.c | 20 ++++++++++---------- + 1 file changed, 10 insertions(+), 10 deletions(-) + +diff --git a/modules/mixer/simple/python.c b/modules/mixer/simple/python.c +index 8a7264d..c7c1ce7 100644 +--- a/modules/mixer/simple/python.c ++++ b/modules/mixer/simple/python.c +@@ -775,8 +775,8 @@ pymixer_melement_new(struct pymixer *pymixer, PyObject *args) + obj = PyDict_GetItemString(pymixer->mdict, class); + if (obj) { + obj1 = PyTuple_New(4); +- if (PyTuple_SET_ITEM(obj1, 0, (PyObject *)pymixer)) +- Py_INCREF((PyObject *)pymixer); ++ PyTuple_SET_ITEM(obj1, 0, (PyObject *)pymixer); ++ Py_INCREF((PyObject *)pymixer); + PyTuple_SET_ITEM(obj1, 1, PyUnicode_FromString(name)); + PyTuple_SET_ITEM(obj1, 2, PyInt_FromLong(index)); + PyTuple_SET_ITEM(obj1, 3, PyInt_FromLong(weight)); +@@ -920,8 +920,8 @@ static PyObject *new_helem(struct python_priv *priv, snd_hctl_elem_t *helem) + obj = PyDict_GetItemString(priv->py_mdict, "HElement"); + if (obj) { + obj1 = PyTuple_New(3); +- if (PyTuple_SET_ITEM(obj1, 0, py_hctl)) +- Py_INCREF(py_hctl); ++ PyTuple_SET_ITEM(obj1, 0, py_hctl); ++ Py_INCREF(py_hctl); + PyTuple_SET_ITEM(obj1, 1, PyFloat_FromDouble(1)); + PyTuple_SET_ITEM(obj1, 2, PyInt_FromLong((long)helem)); + obj2 = PyObject_CallObject(obj, obj1); +@@ -995,11 +995,11 @@ int alsa_mixer_simple_event(snd_mixer_class_t *class, unsigned int mask, + } + if (o == NULL) + return 0; +- if (PyTuple_SET_ITEM(t, 1, o)) +- Py_INCREF(o); ++ PyTuple_SET_ITEM(t, 1, o); ++ Py_INCREF(o); + o = melem ? find_melem(priv, melem) : Py_None; +- if (PyTuple_SET_ITEM(t, 2, o)) +- Py_INCREF(o); ++ PyTuple_SET_ITEM(t, 2, o); ++ Py_INCREF(o); + r = PyObject_CallObject(priv->py_event_func, t); + Py_DECREF(t); + if (r) { +@@ -1066,8 +1066,8 @@ static int alsa_mixer_simple_pyinit(struct python_priv *priv, + obj1 = PyTuple_New(3); + PyTuple_SET_ITEM(obj1, 0, PyInt_FromLong((long)class)); + PyTuple_SET_ITEM(obj1, 1, PyInt_FromLong((long)mixer)); +- if (PyTuple_SET_ITEM(obj1, 2, mdict)) +- Py_INCREF(mdict); ++ PyTuple_SET_ITEM(obj1, 2, mdict); ++ Py_INCREF(mdict); + obj2 = PyObject_CallObject(obj, obj1); + Py_XDECREF(obj1); + PyDict_SetItemString(mdict, "mixer", obj2); +-- +2.33.1 +
package/alsa-lib/0002-fix-build-with-disable-ucm.patch deleted +0 -43
43 lines not on this page · raw message
package/alsa-lib/0003-control-empty-fix-the-static-build.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From 81e7923fbfad45b2f353a4d6e3053af51f5f7d0b Mon Sep 17 00:00:00 2001 -From: Jaroslav Kysela <[email protected]> -Date: Tue, 15 Jun 2021 23:21:42 +0200 -Subject: [PATCH] control: empty - fix the static build - -Reported-by: Jan Palus <[email protected]> -Fixes: https://github.com/alsa-project/alsa-lib/issues/157 -Signed-off-by: Jaroslav Kysela <[email protected]> - -[Retrieved from: -https://github.com/alsa-project/alsa-lib/commit/81e7923fbfad45b2f353a4d6e3053af51f5f7d0b] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - src/control/control_empty.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/control/control_empty.c b/src/control/control_empty.c -index 49d1026c..c9b048c1 100644 ---- a/src/control/control_empty.c -+++ b/src/control/control_empty.c -@@ -30,7 +30,7 @@ - - #ifndef PIC - /* entry for static linking */ --const char *_snd_module_ctl_empty = ""; -+const char *_snd_module_control_empty = ""; - #endif - - /*! \page control_plugins
package/alsa-lib/alsa-lib.hash +1 -1
@@ -1,4 +1,4 @@ # Locally calculated -sha256 628421d950cecaf234de3f899d520c0a6923313c964ad751ffac081df331438e alsa-lib-1.2.5.1.tar.bz2 +sha256 7fe3057894ec319118abfd042ef84632a1dcd911806ec9fff6daaa68d15a8c52 alsa-lib-1.2.6.tar.bz2 sha256 32434afcc8666ba060e111d715bfdb6c2d5dd8a35fa4d3ab8ad67d8f850d2f2b COPYING sha256 bfe16cf823bcff261fc6a062c07ee96660e3c39678f42f39a788a68dbc234ced aserver/COPYING
package/alsa-lib/alsa-lib.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ALSA_LIB_VERSION = 1.2.5.1 +ALSA_LIB_VERSION = 1.2.6 ALSA_LIB_SOURCE = alsa-lib-$(ALSA_LIB_VERSION).tar.bz2 ALSA_LIB_SITE = https://www.alsa-project.org/files/pub/lib ALSA_LIB_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (aserver)
Signature · 6 lines
2.33.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni
AppliedRe: [Buildroot] [PATCH 2/3] package/alsa-lib: bump to version 1.2.6
Quoted 5 lines · On Wed, 29 Dec 2021 17:28:35 -0800 Adam Duskett <[email protected]> wrote:
- Drop upstream patches
- Add a new patch: 0002-fix-PyTuple_SET_ITEM-usage-no-return-value.patch which fixes python 3.10 compatibility.Signed-off-by Adam Duskett <[email protected]>
Quoted 10 lines
--- ...Tuple_SET_ITEM-usage-no-return-value.patch | 70 +++++++++++++++++++ .../0002-fix-build-with-disable-ucm.patch | 43 ------------ ...3-control-empty-fix-the-static-build.patch | 29 -------- package/alsa-lib/alsa-lib.hash | 2 +- package/alsa-lib/alsa-lib.mk | 2 +- 5 files changed, 72 insertions(+), 74 deletions(-) create mode 100644 package/alsa-lib/0002-fix-PyTuple_SET_ITEM-usage-no-return-value.patch delete mode 100644 package/alsa-lib/0002-fix-build-with-disable-ucm.patch delete mode 100644 package/alsa-lib/0003-control-empty-fix-the-static-build.patch
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/3 package/python3: bump to version 3.10.1
In reply to Adam Duskett- Remove 0013-Add-an-option-to-disable-installation-of-test-module.patch as it is now upstreamed.
- Refactor and rename all other patches as necessary.
---
...e-the-build-of-pyc-files-conditional.patch | 14 +--
...taddrinfo-configure-test-when-cross-.patch | 8 +-
...re-to-disable-the-build-of-certain-e.patch | 26 ++--
...y-header-paths-for-cross-compilation.patch | 54 ++++----
...ook-in-usr-lib-termcap-for-libraries.patch | 8 +-
.../0006-Don-t-add-multiarch-paths.patch | 8 +-
.../0007-Abort-on-failed-module-build.patch | 8 +-
.../0008-Serial-ioctl-workaround.patch | 4 +-
...e-shebang-of-Python-scripts-for-cros.patch | 4 +-
...ig.sh.in-ensure-sed-invocations-only.patch | 4 +-
...locale-and-set-to-default-when-addin.patch | 12 +-
...Add-importlib-fix-for-PEP-3147-issue.patch | 12 +-
...-disable-installation-of-test-module.patch | 117 ------------------
...0013-Add-an-option-to-disable-pydoc.patch} | 51 ++++----
...14-Add-an-option-to-disable-lib2to3.patch} | 85 +++++++------
...ption-to-disable-the-sqlite3-module.patch} | 48 +++----
...d-an-option-to-disable-the-tk-module.patch | 74 +++++++++++
...option-to-disable-the-curses-module.patch} | 39 +++---
...d-an-option-to-disable-the-tk-module.patch | 73 -----------
...0018-Add-an-option-to-disable-expat.patch} | 45 +++----
...Add-an-option-to-disable-CJK-codecs.patch} | 8 +-
...> 0020-Add-an-option-to-disable-NIS.patch} | 8 +-
...dd-an-option-to-disable-unicodedata.patch} | 8 +-
... 0022-Add-an-option-to-disable-IDLE.patch} | 53 ++++----
...23-Add-an-option-to-disable-decimal.patch} | 14 +--
...n-to-disable-the-ossaudiodev-module.patch} | 8 +-
...n-option-to-disable-openssl-support.patch} | 8 +-
...tion-to-disable-the-readline-module.patch} | 8 +-
...o-disable-zlib-bzip2-and-xz-modules.patch} | 8 +-
...hon-config.sh-don-t-reassign-prefix.patch} | 6 +-
...-Fix-cross-compiling-the-uuid-module.patch | 43 +++++++
...Add-an-option-to-disable-uuid-module.patch | 8 +-
...-fix-building-on-older-distributions.patch | 4 +-
...up-CC-print-multiarch-output-for-mus.patch | 9 +-
...ion-to-disable-the-berkeleydb-module.patch | 8 +-
...-ng-doesn-t-set-errno-when-encryptio.patch | 4 +-
...teration-error-in-_ExecutorManagerTh.patch | 29 -----
package/python3/python3.hash | 8 +-
package/python3/python3.mk | 4 +-
39 files changed, 425 insertions(+), 515 deletions(-)
delete mode 100644 package/python3/0013-Add-an-option-to-disable-installation-of-test-module.patch
rename package/python3/{0014-Add-an-option-to-disable-pydoc.patch => 0013-Add-an-option-to-disable-pydoc.patch} (72%)
rename package/python3/{0015-Add-an-option-to-disable-lib2to3.patch => 0014-Add-an-option-to-disable-lib2to3.patch} (65%)
rename package/python3/{0016-Add-option-to-disable-the-sqlite3-module.patch => 0015-Add-option-to-disable-the-sqlite3-module.patch} (60%)
create mode 100644 package/python3/0016-Add-an-option-to-disable-the-tk-module.patch
rename package/python3/{0018-Add-an-option-to-disable-the-curses-module.patch => 0017-Add-an-option-to-disable-the-curses-module.patch} (60%)
delete mode 100644 package/python3/0017-Add-an-option-to-disable-the-tk-module.patch
rename package/python3/{0019-Add-an-option-to-disable-expat.patch => 0018-Add-an-option-to-disable-expat.patch} (74%)
rename package/python3/{0020-Add-an-option-to-disable-CJK-codecs.patch => 0019-Add-an-option-to-disable-CJK-codecs.patch} (82%)
rename package/python3/{0021-Add-an-option-to-disable-NIS.patch => 0020-Add-an-option-to-disable-NIS.patch} (84%)
rename package/python3/{0022-Add-an-option-to-disable-unicodedata.patch => 0021-Add-an-option-to-disable-unicodedata.patch} (83%)
rename package/python3/{0023-Add-an-option-to-disable-IDLE.patch => 0022-Add-an-option-to-disable-IDLE.patch} (67%)
rename package/python3/{0024-Add-an-option-to-disable-decimal.patch => 0023-Add-an-option-to-disable-decimal.patch} (89%)
rename package/python3/{0025-Add-an-option-to-disable-the-ossaudiodev-module.patch => 0024-Add-an-option-to-disable-the-ossaudiodev-module.patch} (85%)
rename package/python3/{0026-Add-an-option-to-disable-openssl-support.patch => 0025-Add-an-option-to-disable-openssl-support.patch} (83%)
rename package/python3/{0027-Add-an-option-to-disable-the-readline-module.patch => 0026-Add-an-option-to-disable-the-readline-module.patch} (82%)
rename package/python3/{0028-Add-options-to-disable-zlib-bzip2-and-xz-modules.patch => 0027-Add-options-to-disable-zlib-bzip2-and-xz-modules.patch} (87%)
rename package/python3/{0029-python-config.sh-don-t-reassign-prefix.patch => 0028-python-config.sh-don-t-reassign-prefix.patch} (94%)
create mode 100644 package/python3/0029-Fix-cross-compiling-the-uuid-module.patch
delete mode 100644 package/python3/0035-Fix-dictionary-iteration-error-in-_ExecutorManagerTh.patchpackage/python3/0001-Make-the-build-of-pyc-files-conditional.patch +7 -7
@@ -1,4 +1,4 @@ -From f63cc3031e775b556443c0f5b2725e530823dc49 Mon Sep 17 00:00:00 2001 +From 322724e166d7ec0393aec577c12fdf6ef2b61e1d Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 22 Feb 2017 16:21:31 -0800 Subject: [PATCH] Make the build of pyc files conditional
@@ -15,10 +15,10 @@ Signed-off-by: Andrey Smirnov <[email protected]> 2 files changed, 8 insertions(+) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 11230fa563..1ed9ad65d2 100644 +index 77f91e72b1..0c809f3d8a 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1549,6 +1549,7 @@ libinstall: build_all $(srcdir)/Modules/xxmodule.c +@@ -1600,6 +1600,7 @@ libinstall: build_all $(srcdir)/Modules/xxmodule.c $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ $(DESTDIR)$(LIBDEST)/distutils/tests ; \ fi
@@ -26,7 +26,7 @@ index 11230fa563..1ed9ad65d2 100644 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \ -j0 -d $(LIBDEST) -f \ -@@ -1576,6 +1577,7 @@ libinstall: build_all $(srcdir)/Modules/xxmodule.c +@@ -1627,6 +1628,7 @@ libinstall: build_all $(srcdir)/Modules/xxmodule.c $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \ -j0 -d $(LIBDEST)/site-packages -f \ -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
@@ -35,10 +35,10 @@ index 11230fa563..1ed9ad65d2 100644 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ diff --git a/configure.ac b/configure.ac -index 823252be69..4e08118c46 100644 +index d60f05251a..1ee5a09588 100644 --- a/configure.ac +++ b/configure.ac -@@ -1123,6 +1123,12 @@ fi +@@ -1110,6 +1110,12 @@ fi AC_MSG_CHECKING(LDLIBRARY)
@@ -52,5 +52,5 @@ index 823252be69..4e08118c46 100644 # library that we build, but we do not want to link against it (we # will find it with a -framework option). For this reason there is an -- -2.20.1 +2.25.1
package/python3/0002-Disable-buggy_getaddrinfo-configure-test-when-cross-.patch +4 -4
@@ -1,4 +1,4 @@ -From 7948fb08b18260811ce64806eec2bef465316b75 Mon Sep 17 00:00:00 2001 +From 72e20220f3a592b3ab9f440fbe74efa9f9e82d49 Mon Sep 17 00:00:00 2001 From: Vanya Sergeev <[email protected]> Date: Wed, 23 Dec 2015 11:30:33 +0100 Subject: [PATCH] Disable buggy_getaddrinfo configure test when cross-compiling
@@ -10,10 +10,10 @@ Signed-off-by: Vanya Sergeev <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac -index 4e08118c46..40b1f9bac1 100644 +index 1ee5a09588..c2445edc88 100644 --- a/configure.ac +++ b/configure.ac -@@ -4217,7 +4217,7 @@ fi +@@ -4230,7 +4230,7 @@ fi AC_MSG_RESULT($ac_cv_buggy_getaddrinfo)
@@ -23,5 +23,5 @@ index 4e08118c46..40b1f9bac1 100644 if test $ipv6 = yes then -- -2.20.1 +2.25.1
package/python3/0003-Add-infrastructure-to-disable-the-build-of-certain-e.patch +13 -13
@@ -1,4 +1,4 @@ -From 9da015fd909bd50a24479bba9a94cb3d1228043d Mon Sep 17 00:00:00 2001 +From df7c95b4ceecf390b961d843a556c470ac9080b2 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 22 Feb 2017 16:33:22 -0800 Subject: [PATCH] Add infrastructure to disable the build of certain extensions
@@ -44,10 +44,10 @@ Signed-off-by: Andrey Smirnov <[email protected]> 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 1ed9ad65d2..6eacfd6961 100644 +index 0c809f3d8a..7c3dde8dd4 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -215,6 +215,8 @@ FILEMODE= 644 +@@ -218,6 +218,8 @@ FILEMODE= 644 # configure script arguments CONFIG_ARGS= @CONFIG_ARGS@
@@ -56,7 +56,7 @@ index 1ed9ad65d2..6eacfd6961 100644 # Subdirectories with code SRCDIRS= @SRCDIRS@ -@@ -631,6 +633,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o +@@ -628,6 +630,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o esac; \ echo "$(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \ _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
@@ -64,7 +64,7 @@ index 1ed9ad65d2..6eacfd6961 100644 $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build"; \ $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \ _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \ -@@ -1695,7 +1698,8 @@ libainstall: @DEF_MAKE_RULE@ python-config +@@ -1748,7 +1751,8 @@ libainstall: @DEF_MAKE_RULE@ python-config # Install the dynamically loadable modules # This goes into $(exec_prefix) sharedinstall: sharedmods
@@ -75,10 +75,10 @@ index 1ed9ad65d2..6eacfd6961 100644 --install-scripts=$(BINDIR) \ --install-platlib=$(DESTSHARED) \ diff --git a/configure.ac b/configure.ac -index 40b1f9bac1..5b897d8e46 100644 +index c2445edc88..73d66167de 100644 --- a/configure.ac +++ b/configure.ac -@@ -3088,6 +3088,8 @@ LIBS="$withval $LIBS" +@@ -3091,6 +3091,8 @@ LIBS="$withval $LIBS" PKG_PROG_PKG_CONFIG
@@ -88,11 +88,11 @@ index 40b1f9bac1..5b897d8e46 100644 AC_MSG_CHECKING(for --with-system-expat) AC_ARG_WITH(system_expat, diff --git a/setup.py b/setup.py -index 9a5887b59f..b88d0bb007 100644 +index 770866bca7..b6c829b3a5 100644 --- a/setup.py +++ b/setup.py -@@ -44,7 +44,10 @@ from distutils.spawn import find_executable - TEST_EXTENSIONS = True +@@ -58,7 +58,10 @@ with warnings.catch_warnings(): + TEST_EXTENSIONS = (sysconfig.get_config_var('TEST_MODULES') == 'yes') # This global variable is used to hold the list of modules to be disabled. -DISABLED_MODULE_LIST = []
@@ -101,8 +101,8 @@ index 9a5887b59f..b88d0bb007 100644 +except KeyError: + DISABLED_MODULE_LIST = list() - - def get_platform(): + # --list-module-names option used by Tools/scripts/generate_module_names.py + LIST_MODULE_NAMES = False -- -2.20.1 +2.25.1
package/python3/0004-Adjust-library-header-paths-for-cross-compilation.patch +28 -26
77 lines not on this page · raw message
package/python3/0005-Don-t-look-in-usr-lib-termcap-for-libraries.patch +4 -4
@@ -1,4 +1,4 @@ -From 09c17b0194209cae8e057866670e4f4039a5be16 Mon Sep 17 00:00:00 2001 +From 60d71e37d167ea89445250be436170a6cfee84e7 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:36:00 +0100 Subject: [PATCH] Don't look in /usr/lib/termcap for libraries
@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/setup.py b/setup.py -index b88d0bb007..254c351519 100644 +index 66d372a..e632b6f 100644 --- a/setup.py +++ b/setup.py -@@ -1044,12 +1044,9 @@ class PyBuildExt(build_ext): +@@ -1147,12 +1147,9 @@ class PyBuildExt(build_ext): pass # Issue 7384: Already linked against curses or tinfo. elif curses_library: readline_libs.append(curses_library)
@@ -27,5 +27,5 @@ index b88d0bb007..254c351519 100644 libraries=readline_libs)) else: -- -2.20.1 +2.25.1
package/python3/0006-Don-t-add-multiarch-paths.patch +4 -4
@@ -1,4 +1,4 @@ -From e87dececb9bc2f4b1cba7f31d67ca2aaecbb52d8 Mon Sep 17 00:00:00 2001 +From f5933b8f973cd11698b52d535a10d0474e49f5a5 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:36:27 +0100 Subject: [PATCH] Don't add multiarch paths
@@ -17,10 +17,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 254c351519..5bf39f8a51 100644 +index ec3ba60607..e27620035c 100644 --- a/setup.py +++ b/setup.py -@@ -737,10 +737,10 @@ class PyBuildExt(build_ext): +@@ -830,10 +830,10 @@ class PyBuildExt(build_ext): if not CROSS_COMPILING: add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
@@ -33,5 +33,5 @@ index 254c351519..5bf39f8a51 100644 def init_inc_lib_dirs(self): -- -2.20.1 +2.25.1
package/python3/0007-Abort-on-failed-module-build.patch +4 -4
@@ -1,4 +1,4 @@ -From cb4a3bc238ffbc8389c2820f24e72c2b36422b3f Mon Sep 17 00:00:00 2001 +From 188c0ebfdb71f5252fa7701013b8d1209f28aef7 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:43:24 +0100 Subject: [PATCH] Abort on failed module build
@@ -14,10 +14,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py -index 5bf39f8a51..36d94432da 100644 +index e27620035c..d3f0e663f2 100644 --- a/setup.py +++ b/setup.py -@@ -524,6 +524,7 @@ class PyBuildExt(build_ext): +@@ -561,6 +561,7 @@ class PyBuildExt(build_ext): print("Failed to build these modules:") print_three_column(failed) print()
@@ -26,5 +26,5 @@ index 5bf39f8a51..36d94432da 100644 if self.failed_on_import: failed = self.failed_on_import[:] -- -2.20.1 +2.25.1
package/python3/0008-Serial-ioctl-workaround.patch +2 -2
@@ -1,4 +1,4 @@ -From 0b62a3634d343e4e3be6541d298d58eb81cf1458 Mon Sep 17 00:00:00 2001 +From 9e6211b0d6d4610e5fb7d2c7e1152eb7c64d968b Mon Sep 17 00:00:00 2001 From: Baruch Siach <[email protected]> Date: Wed, 23 Dec 2015 11:44:02 +0100 Subject: [PATCH] Serial ioctl() workaround
@@ -29,5 +29,5 @@ index 75e5e52320..eefbddfe69 100644 /* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR, * MDTR, MRI, and MRTS (apparently used internally by some things -- -2.20.1 +2.25.1
package/python3/0009-Do-not-adjust-the-shebang-of-Python-scripts-for-cros.patch +2 -2
@@ -1,4 +1,4 @@ -From 64bdc89106e6bd76e9b204d9cfef0adb7bfb0f4a Mon Sep 17 00:00:00 2001 +From cb595a591c71e0bf7c63a3706b0be45ac6a642e3 Mon Sep 17 00:00:00 2001 From: Christophe Vu-Brugier <[email protected]> Date: Wed, 23 Dec 2015 11:44:30 +0100 Subject: [PATCH] Do not adjust the shebang of Python scripts for
@@ -31,5 +31,5 @@ index ccc70e6465..d6d54195c1 100644 self.build_dir) updated_files.append(outfile) -- -2.20.1 +2.25.1
package/python3/0010-Misc-python-config.sh.in-ensure-sed-invocations-only.patch +2 -2
@@ -1,4 +1,4 @@ -From e9f8466944c5000d9b43d25d38ef9eaa8cb0afae Mon Sep 17 00:00:00 2001 +From eb51497e4b5799f8ab0277426d3e54414acb9d4b Mon Sep 17 00:00:00 2001 From: Peter Korsgaard <[email protected]> Date: Thu, 20 Nov 2014 13:24:59 +0100 Subject: [PATCH] Misc/python-config.sh.in: ensure sed invocations only match
@@ -63,5 +63,5 @@ index 2602fe24c0..a1bc3cd5f7 100644 PYTHONFRAMEWORK="@PYTHONFRAMEWORK@" INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}" -- -2.20.1 +2.25.1
package/python3/0011-Override-system-locale-and-set-to-default-when-addin.patch +6 -6
@@ -1,4 +1,4 @@ -From 6615a314ac7a2bc7efea945677934d6afd3b61d6 Mon Sep 17 00:00:00 2001 +From e4ae670e3489544a49dabd1618c32fe73504a7ba Mon Sep 17 00:00:00 2001 From: Samuel Cabrero <[email protected]> Date: Wed, 23 Dec 2015 11:45:48 +0100 Subject: [PATCH] Override system locale and set to default when adding gcc
@@ -22,18 +22,18 @@ Signed-off-by: James Hilliard <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 36d94432da..506f6107de 100644 +index d3f0e663f2..926c16f58f 100644 --- a/setup.py +++ b/setup.py -@@ -683,7 +683,7 @@ class PyBuildExt(build_ext): +@@ -761,7 +761,7 @@ class PyBuildExt(build_ext): tmpfile = os.path.join(self.build_temp, 'ccpaths') if not os.path.exists(self.build_temp): os.makedirs(self.build_temp) -- ret = run_command('%s -E -v - </dev/null 2>%s 1>/dev/null' % (cc, tmpfile)) -+ ret = run_command('LC_ALL=C %s -E -v - </dev/null 2>%s 1>/dev/null' % (cc, tmpfile)) +- ret = run_command('%s -E -v - </dev/null 2>%s 1>/dev/null' % (CC, tmpfile)) ++ ret = run_command('LC_ALL=C %s -E -v - </dev/null 2>%s 1>/dev/null' % (CC, tmpfile)) is_gcc = False is_clang = False in_incdirs = False -- -2.20.1 +2.25.1
package/python3/0012-Add-importlib-fix-for-PEP-3147-issue.patch +6 -6
@@ -1,4 +1,4 @@ -From cda5c7447403440d679a3cd29d8dc38bb15eca33 Mon Sep 17 00:00:00 2001 +From e2ea659eac1849db471d3c01a0d0af9d6fca2e9a Mon Sep 17 00:00:00 2001 From: Christophe Vu-Brugier <[email protected]> Date: Wed, 22 Feb 2017 16:48:49 -0800 Subject: [PATCH] Add importlib fix for PEP 3147 issue
@@ -25,10 +25,10 @@ Signed-off-by: Andrey Smirnov <[email protected]> 1 file changed, 5 insertions(+), 39 deletions(-) diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py -index fe31f437da..71e64aef30 100644 +index 25a3f8c0e0..2cb9a9aa52 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py -@@ -373,8 +373,6 @@ def cache_from_source(path, debug_override=None, *, optimization=None): +@@ -392,8 +392,6 @@ def cache_from_source(path, debug_override=None, *, optimization=None): a True value is the same as setting 'optimization' to the empty string while a False value is equivalent to setting 'optimization' to '1'.
@@ -37,7 +37,7 @@ index fe31f437da..71e64aef30 100644 """ if debug_override is not None: _warnings.warn('the debug_override parameter is deprecated; use ' -@@ -386,10 +384,7 @@ def cache_from_source(path, debug_override=None, *, optimization=None): +@@ -405,10 +403,7 @@ def cache_from_source(path, debug_override=None, *, optimization=None): path = _os.fspath(path) head, tail = _path_split(path) base, sep, rest = tail.rpartition('.')
@@ -49,7 +49,7 @@ index fe31f437da..71e64aef30 100644 if optimization is None: if sys.flags.optimize == 0: optimization = '' -@@ -426,46 +421,17 @@ def cache_from_source(path, debug_override=None, *, optimization=None): +@@ -445,46 +440,17 @@ def cache_from_source(path, debug_override=None, *, optimization=None): head.lstrip(path_separators), filename, )
@@ -101,5 +101,5 @@ index fe31f437da..71e64aef30 100644 -- -2.20.1 +2.25.1
package/python3/0013-Add-an-option-to-disable-installation-of-test-module.patch deleted +0 -117
117 lines not on this page · raw message
package/python3/0013-Add-an-option-to-disable-pydoc.patch renamed from package/python3/0014-Add-an-option-to-disable-pydoc.patch +26 -25
104 lines not on this page · raw message
package/python3/0014-Add-an-option-to-disable-lib2to3.patch renamed from package/python3/0015-Add-an-option-to-disable-lib2to3.patch +44 -41
140 lines not on this page · raw message
package/python3/0015-Add-option-to-disable-the-sqlite3-module.patch renamed from package/python3/0016-Add-option-to-disable-the-sqlite3-module.patch +25 -23
80 lines not on this page · raw message
package/python3/0016-Add-an-option-to-disable-the-tk-module.patch new file +74 -0
74 lines not on this page · raw message
package/python3/0017-Add-an-option-to-disable-the-curses-module.patch renamed from package/python3/0018-Add-an-option-to-disable-the-curses-module.patch +20 -19
@@ -1,4 +1,4 @@ -From 7dea1b79fbb905dd69862862f327cc0f25cd93c2 Mon Sep 17 00:00:00 2001 +From 962deb43f5f340a8472d432ae8e6d61186f9040e Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 22 Feb 2017 17:31:51 -0800 Subject: [PATCH] Add an option to disable the curses module
@@ -7,39 +7,40 @@ Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> [ Andrey Smirnov: ported to Python 3.6 ] Signed-off-by: Andrey Smirnov <[email protected]> +[ Adam Duskett: ported to Python 3.10.0 ] +Signed-off-by: Adam Duskett <[email protected]> --- - Makefile.pre.in | 5 ++++- + Makefile.pre.in | 4 +++- configure.ac | 9 +++++++++ - 2 files changed, 13 insertions(+), 1 deletion(-) + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 4fcf8b5a96..2e45a41140 100644 +index c968113..f89f155 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1425,7 +1425,6 @@ LIBSUBDIRS= site-packages \ - multiprocessing multiprocessing/dummy \ - unittest \ - venv venv/scripts venv/scripts/common venv/scripts/posix \ +@@ -1432,7 +1432,6 @@ LIBSUBDIRS= asyncio \ + concurrent concurrent/futures \ + csv \ + ctypes ctypes/macholib \ - curses \ - zoneinfo - - TESTSUBDIRS= test \ -@@ -1506,6 +1505,10 @@ TESTSUBDIRS += tkinter/test tkinter/test/test_tkinter \ + dbm \ + distutils distutils/command \ + email email/mime \ +@@ -1546,6 +1545,9 @@ TESTSUBDIRS += tkinter/test tkinter/test/test_tkinter \ tkinter/test/test_ttk endif +ifeq (@CURSES@,yes) +LIBSUBDIRS += curses +endif -+ - ifeq (@LIB2TO3@,yes) - LIBSUBDIRS += lib2to3 lib2to3/fixes lib2to3/pgen2 - TESTSUBDIRS += lib2to3/tests \ + + TEST_MODULES=@TEST_MODULES@ + libinstall: build_all $(srcdir)/Modules/xxmodule.c diff --git a/configure.ac b/configure.ac -index a4d06dcb50..f034cd4bcb 100644 +index dc76dff..4f1cda5 100644 --- a/configure.ac +++ b/configure.ac -@@ -3383,6 +3383,15 @@ if test "$TK" = "no"; then +@@ -3391,6 +3391,15 @@ if test "$TK" = "no"; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter" fi
@@ -56,5 +57,5 @@ index a4d06dcb50..f034cd4bcb 100644 AC_ARG_ENABLE(pydoc, -- -2.20.1 +2.30.2
package/python3/0017-Add-an-option-to-disable-the-tk-module.patch deleted +0 -73
73 lines not on this page · raw message
package/python3/0018-Add-an-option-to-disable-expat.patch renamed from package/python3/0019-Add-an-option-to-disable-expat.patch +23 -22
82 lines not on this page · raw message
package/python3/0019-Add-an-option-to-disable-CJK-codecs.patch renamed from package/python3/0020-Add-an-option-to-disable-CJK-codecs.patch +4 -4
@@ -1,4 +1,4 @@ -From ede026befe4094635d268e293bfccb9118f19a1c Mon Sep 17 00:00:00 2001 +From 2c0d31bb91fc7f94283c3ab632925fbbe24e94d6 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:49:55 +0100 Subject: [PATCH] Add an option to disable CJK codecs
@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index c90c92c2de..d9029f5463 100644 +index 9ef0ecd42f..18e6fd70a0 100644 --- a/configure.ac +++ b/configure.ac -@@ -3382,6 +3382,12 @@ if test "$SQLITE3" = "no" ; then +@@ -3390,6 +3390,12 @@ if test "$SQLITE3" = "no" ; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3" fi
@@ -26,5 +26,5 @@ index c90c92c2de..d9029f5463 100644 AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), -- -2.20.1 +2.25.1
package/python3/0020-Add-an-option-to-disable-NIS.patch renamed from package/python3/0021-Add-an-option-to-disable-NIS.patch +4 -4
@@ -1,4 +1,4 @@ -From 1c1acbd3ca7f1184710326fab2d557fed4a216e3 Mon Sep 17 00:00:00 2001 +From 2041d0c8dba87991edaf088b16e37b5189a3466d Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:50:11 +0100 Subject: [PATCH] Add an option to disable NIS
@@ -12,10 +12,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index d9029f5463..82d9ec77fa 100644 +index 18e6fd70a0..46d2a8131e 100644 --- a/configure.ac +++ b/configure.ac -@@ -3388,6 +3388,12 @@ AC_ARG_ENABLE(codecs-cjk, +@@ -3396,6 +3396,12 @@ AC_ARG_ENABLE(codecs-cjk, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _codecs_kr _codecs_jp _codecs_cn _codecs_tw _codecs_hk _codecs_iso2022" fi])
@@ -29,5 +29,5 @@ index d9029f5463..82d9ec77fa 100644 AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), -- -2.20.1 +2.25.1
package/python3/0021-Add-an-option-to-disable-unicodedata.patch renamed from package/python3/0022-Add-an-option-to-disable-unicodedata.patch +4 -4
@@ -1,4 +1,4 @@ -From 9fb4ebe3375ff3fc924d423b6b3400bf2cf82fb6 Mon Sep 17 00:00:00 2001 +From dd82a401ff6ba4ba116bf4d520e981a1808ed443 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:50:27 +0100 Subject: [PATCH] Add an option to disable unicodedata
@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index 82d9ec77fa..55d257515f 100644 +index 46d2a8131e..5844e3b73f 100644 --- a/configure.ac +++ b/configure.ac -@@ -3394,6 +3394,12 @@ AC_ARG_ENABLE(nis, +@@ -3402,6 +3402,12 @@ AC_ARG_ENABLE(nis, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} nis" fi])
@@ -26,5 +26,5 @@ index 82d9ec77fa..55d257515f 100644 AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), -- -2.20.1 +2.25.1
package/python3/0022-Add-an-option-to-disable-IDLE.patch renamed from package/python3/0023-Add-an-option-to-disable-IDLE.patch +28 -25
101 lines not on this page · raw message
package/python3/0023-Add-an-option-to-disable-decimal.patch renamed from package/python3/0024-Add-an-option-to-disable-decimal.patch +7 -7
@@ -1,4 +1,4 @@ -From 2eb05b69bb21df7884686ca2620612ac0f95b894 Mon Sep 17 00:00:00 2001 +From d5fe81cbd51da2a84ed89d1e4c80d921d4efce26 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:51:31 +0100 Subject: [PATCH] Add an option to disable decimal
@@ -19,10 +19,10 @@ Signed-off-by: James Hilliard <[email protected]> 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac -index 2efd7a6de0..86fd03cdbb 100644 +index 7bd4623ccd..e513ef6a20 100644 --- a/configure.ac +++ b/configure.ac -@@ -3142,13 +3142,20 @@ fi +@@ -3145,13 +3145,20 @@ fi AC_SUBST(LIBFFI_INCLUDEDIR) # Check for use of the system libmpdec library
@@ -49,18 +49,18 @@ index 2efd7a6de0..86fd03cdbb 100644 # Check whether _decimal should use a coroutine-local or thread-local context AC_MSG_CHECKING(for --with-decimal-contextvar) diff --git a/setup.py b/setup.py -index 4f8cfcd28d..b471234473 100644 +index c4ee989ba3..3d0c74bb7f 100644 --- a/setup.py +++ b/setup.py -@@ -2202,7 +2202,7 @@ class PyBuildExt(build_ext): +@@ -2321,7 +2321,7 @@ class PyBuildExt(build_ext): # Stefan Krah's _decimal module extra_compile_args = [] undef_macros = [] - if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"): + if '--with-libmpdec=system' in sysconfig.get_config_var("CONFIG_ARGS"): include_dirs = [] - libraries = [':libmpdec.so.2'] + libraries = ['mpdec'] sources = ['_decimal/_decimal.c'] -- -2.20.1 +2.25.1
package/python3/0024-Add-an-option-to-disable-the-ossaudiodev-module.patch renamed from package/python3/0025-Add-an-option-to-disable-the-ossaudiodev-module.patch +4 -4
@@ -1,4 +1,4 @@ -From 1773ef327247ff2a6e7ce737637748b67c90419f Mon Sep 17 00:00:00 2001 +From 9bedc56d2a4b8856162650a11c1fcb6ec38f160b Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:51:58 +0100 Subject: [PATCH] Add an option to disable the ossaudiodev module
@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index 86fd03cdbb..7ba4ea8d5d 100644 +index e513ef6a20..c07505e89e 100644 --- a/configure.ac +++ b/configure.ac -@@ -3172,6 +3172,12 @@ fi +@@ -3175,6 +3175,12 @@ fi AC_MSG_RESULT($with_decimal_contextvar)
@@ -26,5 +26,5 @@ index 86fd03cdbb..7ba4ea8d5d 100644 AC_MSG_CHECKING(for --enable-loadable-sqlite-extensions) AC_ARG_ENABLE(loadable-sqlite-extensions, -- -2.20.1 +2.25.1
package/python3/0025-Add-an-option-to-disable-openssl-support.patch renamed from package/python3/0026-Add-an-option-to-disable-openssl-support.patch +4 -4
@@ -1,4 +1,4 @@ -From 9fb639fba83cddfbda20819d58df77bdccf6ba1d Mon Sep 17 00:00:00 2001 +From 90ed5c692b8b5596ca0b3ae1436276c8181251d8 Mon Sep 17 00:00:00 2001 From: Nicolas Cavallari <[email protected]> Date: Wed, 22 Feb 2017 17:55:59 -0800 Subject: [PATCH] Add an option to disable openssl support.
@@ -9,10 +9,10 @@ Signed-off-by: Nicolas Cavallari <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index 7ba4ea8d5d..96e7e1feed 100644 +index 08c148c..a81a24c 100644 --- a/configure.ac +++ b/configure.ac -@@ -3413,6 +3413,12 @@ AC_ARG_ENABLE(unicodedata, +@@ -3421,6 +3421,12 @@ AC_ARG_ENABLE(unicodedata, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} unicodedata" fi])
@@ -26,5 +26,5 @@ index 7ba4ea8d5d..96e7e1feed 100644 AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), -- -2.20.1 +2.30.2
package/python3/0026-Add-an-option-to-disable-the-readline-module.patch renamed from package/python3/0027-Add-an-option-to-disable-the-readline-module.patch +4 -4
@@ -1,4 +1,4 @@ -From c246223473b49a719b765520068aaf812f1fe6ca Mon Sep 17 00:00:00 2001 +From 049e7a51e1ffd0d28d6608c707ab4b54e816d338 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Tue, 7 Mar 2017 23:29:05 +0100 Subject: [PATCH] Add an option to disable the readline module
@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index 96e7e1feed..d5732b2474 100644 +index a81a24c..41a21ff 100644 --- a/configure.ac +++ b/configure.ac -@@ -3419,6 +3419,12 @@ AC_ARG_ENABLE(openssl, +@@ -3427,6 +3427,12 @@ AC_ARG_ENABLE(openssl, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ssl _ssl _hashlib" fi])
@@ -26,5 +26,5 @@ index 96e7e1feed..d5732b2474 100644 AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), -- -2.20.1 +2.30.2
package/python3/0027-Add-options-to-disable-zlib-bzip2-and-xz-modules.patch renamed from package/python3/0028-Add-options-to-disable-zlib-bzip2-and-xz-modules.patch +4 -4
@@ -1,4 +1,4 @@ -From 4d87cebaff75a19cd7ccf20f1c89abec5a5bce8d Mon Sep 17 00:00:00 2001 +From 146730a04dfe98e3d7971ebf5410801ceae88e11 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Tue, 7 Mar 2017 23:31:11 +0100 Subject: [PATCH] Add options to disable zlib, bzip2 and xz modules
@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 18 insertions(+) diff --git a/configure.ac b/configure.ac -index d5732b2474..3eadf17306 100644 +index 41a21ff..fa81bc7 100644 --- a/configure.ac +++ b/configure.ac -@@ -3425,6 +3425,24 @@ AC_ARG_ENABLE(readline, +@@ -3433,6 +3433,24 @@ AC_ARG_ENABLE(readline, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} readline" fi])
@@ -38,5 +38,5 @@ index d5732b2474..3eadf17306 100644 AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), -- -2.20.1 +2.30.2
package/python3/0028-python-config.sh-don-t-reassign-prefix.patch renamed from package/python3/0029-python-config.sh-don-t-reassign-prefix.patch +3 -3
@@ -1,4 +1,4 @@ -From 1ab6b1fb17c1988baca6b9c578f8de33c44c1a17 Mon Sep 17 00:00:00 2001 +From 106d9378c61e7fa9cad0a63ba068668d54cd11b8 Mon Sep 17 00:00:00 2001 From: Matt Weber <[email protected]> Date: Fri, 6 Oct 2017 09:54:15 -0500 Subject: [PATCH] python-config.sh: don't reassign ${prefix}
@@ -27,7 +27,7 @@ Signed-off-by: Matthew Weber <[email protected]> 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Misc/python-config.sh.in b/Misc/python-config.sh.in -index a1bc3cd5f7..164d2d3603 100644 +index a1bc3cd..164d2d3 100644 --- a/Misc/python-config.sh.in +++ b/Misc/python-config.sh.in @@ -31,7 +31,7 @@ prefix_real=$(installed_prefix "$0")
@@ -49,5 +49,5 @@ index a1bc3cd5f7..164d2d3603 100644 SO="@EXT_SUFFIX@" PYTHONFRAMEWORK="@PYTHONFRAMEWORK@" -- -2.20.1 +2.30.2
package/python3/0029-Fix-cross-compiling-the-uuid-module.patch new file +43 -0
43 lines not on this page · raw message
package/python3/0030-Add-an-option-to-disable-uuid-module.patch +4 -4
@@ -1,4 +1,4 @@ -From 20ff7301b496efe529e2b313cac4d7af626f5051 Mon Sep 17 00:00:00 2001 +From 3bb693408eda77dda145ec5fecee56ea73031e9f Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Sat, 18 Aug 2018 10:54:56 +0200 Subject: [PATCH] Add an option to disable uuid module
@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac -index 3eadf17306..7812dc5102 100644 +index fa81bc7..4e733f6 100644 --- a/configure.ac +++ b/configure.ac -@@ -3461,6 +3461,15 @@ if test "$CURSES" = "no"; then +@@ -3469,6 +3469,15 @@ if test "$CURSES" = "no"; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel" fi
@@ -29,5 +29,5 @@ index 3eadf17306..7812dc5102 100644 AC_ARG_ENABLE(pydoc, -- -2.20.1 +2.30.2
package/python3/0031-fix-building-on-older-distributions.patch +2 -2
@@ -1,4 +1,4 @@ -From c9548b8e80eecdd6d0798817698c77649f005b42 Mon Sep 17 00:00:00 2001 +From 94c62f96ca61f1a28124c837d7ec5ed0b9ae8786 Mon Sep 17 00:00:00 2001 From: Adam Duskett <[email protected]> Date: Thu, 16 Aug 2018 14:52:37 -0700 Subject: [PATCH] fix building on older distributions
@@ -34,5 +34,5 @@ index 224585c69b..ef458c0c63 100644 os.unlink(new_path) -- -2.20.1 +2.25.1
package/python3/0032-configure.ac-fixup-CC-print-multiarch-output-for-mus.patch +4 -5
@@ -1,4 +1,4 @@ -From ffe8fb3065973204fce95130c32578163755b71e Mon Sep 17 00:00:00 2001 +From edc0757c56090364e0a95aabfa9f645a16a27569 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard <[email protected]> Date: Fri, 2 Aug 2019 15:53:16 +0200 Subject: [PATCH] configure.ac: fixup $CC --print-multiarch output for
@@ -23,17 +23,16 @@ non-multiarch toolchain on some architectures (E.G. PowerPC), but as a workaround, rewrite the --print-multiarch output to match older GCC versions to keep the configure script happy. -[Peter: update for 3.9.9, which made the MULTIARCH logic !darwin] Signed-off-by: Peter Korsgaard <[email protected]> --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac -index 7812dc5102..0ce52b9a7d 100644 +index 615c16aced..241298e6cf 100644 --- a/configure.ac +++ b/configure.ac -@@ -883,7 +883,9 @@ fi +@@ -873,7 +873,9 @@ fi rm -f conftest.c conftest.out if test x$PLATFORM_TRIPLET != xdarwin; then
@@ -45,5 +44,5 @@ index 7812dc5102..0ce52b9a7d 100644 AC_SUBST(MULTIARCH) -- -2.20.1 +2.25.1
package/python3/0033-Add-an-option-to-disable-the-berkeleydb-module.patch +4 -4
@@ -1,4 +1,4 @@ -From 368a582879f3d757e3527071fd95a956bb272bd8 Mon Sep 17 00:00:00 2001 +From cf4d7fd9f7cb6c1ced32ee323b2b5755640051b7 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls <[email protected]> Date: Sat, 11 Apr 2020 22:01:40 +0200 Subject: [PATCH] Add an option to disable the berkeleydb module
@@ -9,10 +9,10 @@ Signed-off-by: Bernd Kuhls <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index 0ce52b9a7d..30a4e5fb2e 100644 +index 4e733f6..1e52f30 100644 --- a/configure.ac +++ b/configure.ac -@@ -3472,6 +3472,12 @@ if test "$UUID" = "no"; then +@@ -3480,6 +3480,12 @@ if test "$UUID" = "no"; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _uuid" fi
@@ -26,5 +26,5 @@ index 0ce52b9a7d..30a4e5fb2e 100644 AC_ARG_ENABLE(pydoc, -- -2.20.1 +2.30.2
package/python3/0034-lib-crypt-uClibc-ng-doesn-t-set-errno-when-encryptio.patch +2 -2
@@ -1,4 +1,4 @@ -From 09ded6ff285e12221114b281d35fe8f9484a9ea5 Mon Sep 17 00:00:00 2001 +From 3c83eedcc2df3ecf6c4a17953ca24dff60c1378e Mon Sep 17 00:00:00 2001 From: Romain Naour <[email protected]> Date: Thu, 12 Nov 2020 00:16:18 +0100 Subject: [PATCH] lib/crypt: uClibc-ng doesn't set errno when encryption method
@@ -36,5 +36,5 @@ index 33dbc46bb3..4692a5270c 100644 raise if result and len(result) == method.total_size: -- -2.20.1 +2.25.4
package/python3/0035-Fix-dictionary-iteration-error-in-_ExecutorManagerTh.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From 234364f756e3083164ec9bfcd4867855048372b4 Mon Sep 17 00:00:00 2001 -From: Jakub Kulik <[email protected]> -Date: Mon, 15 Mar 2021 08:49:28 +0100 -Subject: [PATCH] Fix dictionary iteration error in _ExecutorManagerThread - -[Thomas: Taken from upstream pull request -https://github.com/python/cpython/pull/24868, which is aimed at fixing -https://bugs.python.org/issue43498] -Signed-off-by: Thomas Petazzoni <[email protected]> ---- - Lib/concurrent/futures/process.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py -index 90bc98bf2e..e3b36dff57 100644 ---- a/Lib/concurrent/futures/process.py -+++ b/Lib/concurrent/futures/process.py -@@ -373,7 +373,7 @@ class _ExecutorManagerThread(threading.Thread): - assert not self.thread_wakeup._closed - wakeup_reader = self.thread_wakeup._reader - readers = [result_reader, wakeup_reader] -- worker_sentinels = [p.sentinel for p in self.processes.values()] -+ worker_sentinels = [p.sentinel for p in self.processes.copy().values()] - ready = mp.connection.wait(readers + worker_sentinels) - - cause = None --- -2.20.1 -
package/python3/python3.hash +4 -4
@@ -1,5 +1,5 @@ -# From https://www.python.org/downloads/release/python-399/ -md5 11d12076311563252a995201248d17e5 Python-3.9.9.tar.xz +# From https://www.python.org/downloads/release/python-3101/ +md5 789210934745a65247a3ebf5da9adb64 Python-3.10.1.tar.xz # Locally computed -sha256 06828c04a573c073a4e51c4292a27c1be4ae26621c3edc7cf9318418ce3b6d27 Python-3.9.9.tar.xz -sha256 599826df92bfdcd2702eac691072498bb096c55af04ee984cf90f70ed77b5a70 LICENSE +sha256 a7f1265b6e1a5de1ec5c3ec7019ab53413469934758311e9d240c46e5ae6e177 Python-3.10.1.tar.xz +sha256 d0285b61e1a8e420c7deb95836738a5d4a0d26463138b17601f5971212684c4b LICENSE
package/python3/python3.mk +2 -2
@@ -4,8 +4,8 @@ # ################################################################################ -PYTHON3_VERSION_MAJOR = 3.9 -PYTHON3_VERSION = $(PYTHON3_VERSION_MAJOR).9 +PYTHON3_VERSION_MAJOR = 3.10 +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
Signature · 6 lines
2.33.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 15 lines · Adam Duskett
Python setuptools 44.0 is not compatible with python 3.10. Unfortunately, python-setuptools 60.2.0 is not compatible with python2. As Buildroot is not ready to end python2 support, the python-setuptools package must accommodate both the old version for python2 and the new version for python3.10.
Changes include:
- Add two new directories: package/python-setuptools/44.0.0 and package/python-setuptools/60.2.0
- Add the appropriate patch and hash files to each directory.
- Modify python-setuptools.mk to support both setuptools 44.0 and 60.2.0 (setuptools 60.2.0 does not have a .zip on pypi anymore, only a tar.gz)
- Point the symlinks in package/python3-setuptools to the files in package/python-setuptools/60.2.0/
Quoted 1 line
Signed-off-by Adam Duskett <[email protected]>
Quoted 199 lines
--- .../{ => 44.0.0}/0001-add-executable.patch | 0 .../{ => 44.0.0}/python-setuptools.hash | 0 .../60.2.0/0001-add-executable.patch | 72 +++++++++++++++++++ .../60.2.0/python-setuptools.hash | 4 ++ .../python-setuptools/python-setuptools.mk | 11 ++- .../0001-add-executable.patch | 2 +- .../python3-setuptools.hash | 2 +- .../python3-setuptools/python3-setuptools.mk | 14 ++-- 8 files changed, 91 insertions(+), 14 deletions(-) rename package/python-setuptools/{ => 44.0.0}/0001-add-executable.patch (100%) rename package/python-setuptools/{ => 44.0.0}/python-setuptools.hash (100%) create mode 100644 package/python-setuptools/60.2.0/0001-add-executable.patch create mode 100644 package/python-setuptools/60.2.0/python-setuptools.hashpackage/python-setuptools/44.0.0/0001-add-executable.patch renamed from package/python-setuptools/0001-add-executable.patch +0
-0package/python-setuptools/44.0.0/python-setuptools.hash renamed from package/python-setuptools/python-setuptools.hash +0
-0package/python-setuptools/60.2.0/0001-add-executable.patch new file +72
-0@@ -0,0 +1,72 @@ +From 9b3d307f8f6a1af88f3f810f5a6cf0835830e1e8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=B6rg=20Krause?= <[email protected]> +Date: Mon, 7 Dec 2015 01:14:33 +0100 +Subject: [PATCH] add executable +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Add a new --executable option to distribute so that we can +force the shebang line in installed python scripts. + +[Thomas: refresh for setuptools 5.8.] +[Jörg: refresh for setuptools 18.7.1] + +Signed-off-by: Gustavo Zacarias <[email protected]> +Signed-off-by: Thomas Petazzoni <[email protected]> +Signed-off-by: Jörg Krause <[email protected]> +--- + setuptools/command/install.py | 2 ++ + setuptools/command/install_scripts.py | 9 +++++++++ + 2 files changed, 11 insertions(+) + +diff --git a/setuptools/command/install.py b/setuptools/command/install.py +index 72b9a3e..6781d2b 100644 +--- a/setuptools/command/install.py ++++ b/setuptools/command/install.py +@@ -16,6 +16,7 @@ class install(orig.install): + """Use easy_install to install the package, w/dependencies""" + + user_options = orig.install.user_options + [ ++ ('executable=', 'e', "specify final destination interpreter path"), + ('old-and-unmanageable', None, "Try not to use this!"), + ('single-version-externally-managed', None, + "used by system package builders to create 'flat' eggs"), +@@ -38,6 +39,7 @@ class install(orig.install): + ) + + orig.install.initialize_options(self) ++ self.executable = None + self.old_and_unmanageable = None + self.single_version_externally_managed = None + +diff --git a/setuptools/command/install_scripts.py b/setuptools/command/install_scripts.py +index 9cd8eb0..7786150 100644 +--- a/setuptools/command/install_scripts.py ++++ b/setuptools/command/install_scripts.py +@@ -13,6 +13,13 @@ class install_scripts(orig.install_scripts): + def initialize_options(self): + orig.install_scripts.initialize_options(self) + self.no_ep = False ++ self.executable = None ++ ++ def finalize_options(self): ++ orig.install_scripts.finalize_options(self) ++ self.set_undefined_options('install', ++ ('executable','executable') ++ ) + + def run(self): + import setuptools.command.easy_install as ei +@@ -33,6 +40,8 @@ class install_scripts(orig.install_scripts): + ) + bs_cmd = self.get_finalized_command('build_scripts') + exec_param = getattr(bs_cmd, 'executable', None) ++ if self.executable is not None: ++ exec_param = self.executable + try: + bw_cmd = self.get_finalized_command("bdist_wininst") + is_wininst = getattr(bw_cmd, '_is_running', False) +-- +2.30.2 +package/python-setuptools/60.2.0/python-setuptools.hash new file +4
-0@@ -0,0 +1,4 @@ +# From https://pypi.org/pypi/setuptools/json +md5 3638c36eaf67f24bacb147c011fe6d30 setuptools-60.2.0.tar.gz +sha256 675fcebecb43c32eb930481abf907619137547f4336206e4d673180242e1a278 setuptools-60.2.0.tar.gz +sha256 db3f0246b1f9278f15845b99fec478b8b506eb76487993722f8c6e254285faf8 LICENSEpackage/python-setuptools/python-setuptools.mk +9
-2@@ -4,16 +4,22 @@ # ################################################################################ -# Please keep in sync with -# package/python3-setuptools/python3-setuptools.mk +ifeq ($(BR2_PACKAGE_PYTHON),y) PYTHON_SETUPTOOLS_VERSION = 44.0.0 PYTHON_SETUPTOOLS_SOURCE = setuptools-$(PYTHON_SETUPTOOLS_VERSION).zip PYTHON_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/b0/f3/44da7482ac6da3f36f68e253cb04de37365b3dba9036a3c70773b778b485 +else # Python3 +PYTHON_SETUPTOOLS_VERSION = 60.2.0 +PYTHON_SETUPTOOLS_SOURCE = setuptools-$(PYTHON3_SETUPTOOLS_VERSION).tar.gz +PYTHON_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/e6/e2/f2bfdf364e016f7a464db709ea40d1101c4c5a463dd7019dae0a42dbd1c6 +endif PYTHON_SETUPTOOLS_LICENSE = MIT PYTHON_SETUPTOOLS_LICENSE_FILES = LICENSE PYTHON_SETUPTOOLS_CPE_ID_VENDOR = python PYTHON_SETUPTOOLS_CPE_ID_PRODUCT = setuptools PYTHON_SETUPTOOLS_SETUP_TYPE = setuptools + +ifeq ($(BR2_PACKAGE_PYTHON),y) HOST_PYTHON_SETUPTOOLS_NEEDS_HOST_PYTHON = python2 define PYTHON_SETUPTOOLS_EXTRACT_CMDS@@ -27,6 +33,7 @@ define HOST_PYTHON_SETUPTOOLS_EXTRACT_CMDS mv $(@D)/setuptools-$(PYTHON_SETUPTOOLS_VERSION)/* $(@D) $(RM) -r $(@D)/setuptools-$(PYTHON_SETUPTOOLS_VERSION) endef +endif $(eval $(python-package)) $(eval $(host-python-package))package/python3-setuptools/0001-add-executable.patch +1
-1@@ -1 +1 @@ -../python-setuptools/0001-add-executable.patch +../python-setuptools/60.2.0/0001-add-executable.patchpackage/python3-setuptools/python3-setuptools.hash +1
-1@@ -1 +1 @@ -../python-setuptools/python-setuptools.hash +../python-setuptools/60.2.0/python-setuptools.hashpackage/python3-setuptools/python3-setuptools.mk +4
-11@@ -6,21 +6,15 @@ # Please keep in sync with # package/python-setuptools/python-setuptools.mk -PYTHON3_SETUPTOOLS_VERSION = 44.0.0 -PYTHON3_SETUPTOOLS_SOURCE = setuptools-$(PYTHON3_SETUPTOOLS_VERSION).zip -PYTHON3_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/b0/f3/44da7482ac6da3f36f68e253cb04de37365b3dba9036a3c70773b778b485 +PYTHON3_SETUPTOOLS_VERSION = 60.2.0 +PYTHON3_SETUPTOOLS_SOURCE = setuptools-$(PYTHON3_SETUPTOOLS_VERSION).tar.gz +PYTHON3_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/9b/be/13f54335c7dba713b0e97e11e7a41db3df4a85073d6c5a6e7f6468b22ee2 PYTHON3_SETUPTOOLS_LICENSE = MIT PYTHON3_SETUPTOOLS_LICENSE_FILES = LICENSE PYTHON3_SETUPTOOLS_CPE_ID_VENDOR = python PYTHON3_SETUPTOOLS_CPE_ID_PRODUCT = setuptools PYTHON3_SETUPTOOLS_SETUP_TYPE = setuptools -HOST_PYTHON3_SETUPTOOLS_DL_SUBDIR = python-setuptools HOST_PYTHON3_SETUPTOOLS_NEEDS_HOST_PYTHON = python3 - -define HOST_PYTHON3_SETUPTOOLS_EXTRACT_CMDS - $(UNZIP) -d $(@D) $(HOST_PYTHON3_SETUPTOOLS_DL_DIR)/$(PYTHON3_SETUPTOOLS_SOURCE) - mv $(@D)/setuptools-$(PYTHON3_SETUPTOOLS_VERSION)/* $(@D) - $(RM) -r $(@D)/setuptools-$(PYTHON3_SETUPTOOLS_VERSION) -endef +HOST_PYTHON3_SETUPTOOLS_DL_SUBDIR = python-setuptools $(eval $(host-python-package)) --2.33.1
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Adam,
Quoted 14 lines · On Wed, 29 Dec 2021 17:28:34 -0800 Adam Duskett <[email protected]> wrote:
Python setuptools 44.0 is not compatible with python 3.10. Unfortunately, python-setuptools 60.2.0 is not compatible with python2. As Buildroot is not ready to end python2 support, the python-setuptools package must accommodate both the old version for python2 and the new version for python3.10.
Changes include:
- Add two new directories: package/python-setuptools/44.0.0 and package/python-setuptools/60.2.0
- Add the appropriate patch and hash files to each directory.
- Modify python-setuptools.mk to support both setuptools 44.0 and 60.2.0 (setuptools 60.2.0 does not have a .zip on pypi anymore, only a tar.gz)
- Point the symlinks in package/python3-setuptools to the files in package/python-setuptools/60.2.0/
Quoted 1 line
Signed-off-by Adam Duskett <[email protected]>
Thanks for working on this!
Unfortunately, there are a number of problems with the patch.
First, there's a trivial issue: the URL you're using for setuptools 60.2.0 simply doesn't work, it returns a 404. The correct URL is:
Then, the second problem is that your patch breaks the build of the python3 package, in the following basic configuration:
BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_SETUPTOOLS=y
# BR2_TARGET_ROOTFS_TAR is not set
I've posted the full build log at https://paste.ack.tf/d1bd39@raw,
because I'm not exactly sure which of the error message causes the build failure.
Note: I have reproduced this issue with just your setuptools patch applied, *not* with the python 3.10 bump applied.
Then, there is a design problem in your patch that will cause breakage in some configurations. For example, in a configuration with neither python nor python3 selected for the target, if host-python-setuptools gets built, the build fails, because you download version 60.2.0, while you should be downloading the older version.
In fact this python-setuptools package is a bit weird:
* The target variant must adapt to python or python3
* The host variant must always build for python2 (hence the NEEDS_HOST_PYTHON = python2)
To address this, I have rewritten python-setuptools.mk as follows:
################################################################################
#
# python-setuptools # ################################################################################
# For the target variant, we adapt the version depending on whether
# Python 3.x or 2.x is selected for the target.
ifeq ($(BR2_PACKAGE_PYTHON3),y)PYTHON_SETUPTOOLS_VERSION = 60.2.0PYTHON_SETUPTOOLS_SOURCE = setuptools-$(PYTHON3_SETUPTOOLS_VERSION).tar.gzPYTHON_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/9b/be/13f54335c7dba713b0e97e11e7a41db3df4a85073d6c5a6e7f6468b22ee2
else # PythonPYTHON_SETUPTOOLS_VERSION = 44.0.0PYTHON_SETUPTOOLS_SOURCE = setuptools-$(PYTHON_SETUPTOOLS_VERSION).zipPYTHON_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/b0/f3/44da7482ac6da3f36f68e253cb04de37365b3dba9036a3c70773b778b485
endif
# The host variant is only for Python 2.x, so we need to use 44.0.0.HOST_PYTHON_SETUPTOOLS_VERSION = 44.0.0HOST_PYTHON_SETUPTOOLS_SOURCE = setuptools-$(PYTHON_SETUPTOOLS_VERSION).zipHOST_PYTHON_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/b0/f3/44da7482ac6da3f36f68e253cb04de37365b3dba9036a3c70773b778b485HOST_PYTHON_SETUPTOOLS_NEEDS_HOST_PYTHON = python2
PYTHON_SETUPTOOLS_LICENSE = MITPYTHON_SETUPTOOLS_LICENSE_FILES = LICENSEPYTHON_SETUPTOOLS_CPE_ID_VENDOR = pythonPYTHON_SETUPTOOLS_CPE_ID_PRODUCT = setuptoolsPYTHON_SETUPTOOLS_SETUP_TYPE = setuptools
ifeq ($(BR2_PACKAGE_PYTHON),y)
define PYTHON_SETUPTOOLS_EXTRACT_CMDS
$(UNZIP) -d $(@D) $(PYTHON_SETUPTOOLS_DL_DIR)/$(PYTHON_SETUPTOOLS_SOURCE)
mv $(@D)/setuptools-$(PYTHON_SETUPTOOLS_VERSION)/* $(@D)
$(RM) -r $(@D)/setuptools-$(PYTHON_SETUPTOOLS_VERSION)endef
endif
define HOST_PYTHON_SETUPTOOLS_EXTRACT_CMDS
$(UNZIP) -d $(@D) $(HOST_PYTHON_SETUPTOOLS_DL_DIR)/$(PYTHON_SETUPTOOLS_SOURCE)
mv $(@D)/setuptools-$(PYTHON_SETUPTOOLS_VERSION)/* $(@D)
$(RM) -r $(@D)/setuptools-$(PYTHON_SETUPTOOLS_VERSION)endef
$(eval $(python-package))
$(eval $(host-python-package))
To test a patch like this, here are the combinations that need to be tested:
* Build a basic configuration with neither python/python3 enabled, and run "make host-python-setuptools"
* Build a basic configuration with neither python/python3 enabled, and run "make host-python3-setuptools"
* Build a basic configuration with python + target python-setuptools enabled. Once built, run "make host-python3-setuptools"
* Build a basic configuration with python3 + target python-setuptools enabled. Once built, run "make host-python-setuptools"
Ideally, we should have test cases for these 4 situations. But the testing infrastructure doesn't yet allow to easily invoke custom make targets.
Best regards,
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot