Skip to content

Commit e69790f

Browse files
commodobreakings
authored andcommitted
python3: bump version to 3.9.7
Refreshed patches. And apply hack for line-endings in pep517 (from pip). Hack comment: # FIXME: [1] get rid of this asap; 'patch' doesn't like Windows endings, and this file is full of them... # I actually tried this in a number of ways and the only way to fix this is to implement # a poor-man's dos2unix using sed. # The issue is with the pip package; it seems that it throws in some Windows line-endings # and 'patch' won't handle them. So, we do a "dos2unix" and then patch. # We can get rid of this once this is solved upstream and in pip: # pypa/pyproject-hooks#130 Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> (cherry picked from commit 26988f9)
1 parent b0f97fc commit e69790f

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

lang/python/python3-version.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
# Note: keep in sync with setuptools & pip
99
PYTHON3_VERSION_MAJOR:=3
1010
PYTHON3_VERSION_MINOR:=9
11-
PYTHON3_VERSION_MICRO:=6
11+
PYTHON3_VERSION_MICRO:=7
1212

1313
PYTHON3_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR)
1414

15-
PYTHON3_SETUPTOOLS_PKG_RELEASE:=2
15+
PYTHON3_SETUPTOOLS_PKG_RELEASE:=1
1616
PYTHON3_PIP_PKG_RELEASE:=1
1717

18-
PYTHON3_SETUPTOOLS_VERSION:=56.0.0
19-
PYTHON3_PIP_VERSION:=21.1.3
18+
PYTHON3_SETUPTOOLS_VERSION:=57.4.0
19+
PYTHON3_PIP_VERSION:=21.2.3

lang/python/python3/Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO)
1616

1717
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
1818
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
19-
PKG_HASH:=397920af33efc5b97f2e0b57e91923512ef89fc5b3c1d21dbfc8c4828ce0108a
19+
# FIXME: if updating, get rid of [1] & [2] asap
20+
PKG_HASH:=f8145616e68c00041d1a6399b76387390388f8359581abc24432bb969b5e3c57
2021

2122
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Jeffery To <jeffery.to@gmail.com>
2223
PKG_LICENSE:=Python/2.0
@@ -206,6 +207,14 @@ define Build/Compile/python3-pip
206207
--root=$(PKG_BUILD_DIR)/install-pip \
207208
--prefix=/usr \
208209
$(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/pip-$(PYTHON3_PIP_VERSION)-py3-none-any.whl
210+
# FIXME: [1] get rid of this asap; 'patch' doesn't like Windows endings, and this file is full of them...
211+
# I actually tried this in a number of ways and the only way to fix this is to implement
212+
# a poor-man's dos2unix using sed.
213+
# The issue is with the pip package; it seems that it throws in some Windows line-endings
214+
# and 'patch' won't handle them. So, we do a "dos2unix" and then patch.
215+
# We can get rid of this once this is solved upstream and in pip:
216+
# https://github.com/pypa/pep517/pull/130
217+
sed 's/\r//' -i $(PKG_BUILD_DIR)/install-pip/usr/lib/python$(PYTHON3_VERSION)/site-packages/pip/_vendor/pep517/in_process/__init__.py
209218
$(call PatchDir,$(PKG_BUILD_DIR)/install-pip/usr/lib/python$(PYTHON3_VERSION)/site-packages,./patches-pip,)
210219
endef
211220
else
@@ -364,6 +373,8 @@ define Host/Install
364373
touch $(HOST_PYTHON3_PKG_DIR)/.setuptools_installed_$(PYTHON3_SETUPTOOLS_VERSION)-$(PYTHON3_SETUPTOOLS_PKG_RELEASE)
365374
)
366375
$(if $(wildcard $(HOST_PYTHON3_PKG_DIR)/.pip_installed_$(PYTHON3_PIP_VERSION)-$(PYTHON3_PIP_PKG_RELEASE)),,
376+
# FIXME: [2] get rid of this asap; same as [1]
377+
sed 's/\r//' -i $(HOST_PYTHON3_PKG_DIR)/pip/_vendor/pep517/in_process/__init__.py
367378
$(call HostPatchDir,$(HOST_PYTHON3_PKG_DIR),./patches-pip,)
368379
touch $(HOST_PYTHON3_PKG_DIR)/.pip_installed_$(PYTHON3_PIP_VERSION)-$(PYTHON3_PIP_PKG_RELEASE)
369380
)

lang/python/python3/patches/006-do-not-add-multiarch-paths-when-cross-compiling.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/setup.py
22
+++ b/setup.py
3-
@@ -734,7 +734,8 @@ class PyBuildExt(build_ext):
3+
@@ -737,7 +737,8 @@ class PyBuildExt(build_ext):
44
# only change this for cross builds for 3.3, issues on Mageia
55
if CROSS_COMPILING:
66
self.add_cross_compiling_paths()

lang/python/python3/patches/010-do-not-add-rt-lib-dirs-when-cross-compiling.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/setup.py
22
+++ b/setup.py
3-
@@ -711,8 +711,9 @@ class PyBuildExt(build_ext):
3+
@@ -714,8 +714,9 @@ class PyBuildExt(build_ext):
44
# directly since an inconsistently reproducible issue comes up where
55
# the environment variable is not set even though the value were passed
66
# into configure and stored in the Makefile (issue found on OS X 10.3).

0 commit comments

Comments
 (0)