Skip to content

Commit 4452d17

Browse files
committed
python3: bump to version 3.9.0
Drop patch 016-adjust-config-paths.patch Using PYTHON_FOR_BUILD variable for that. Refreshed other patches. Dropped 'patches-setuptools/004-site-patch.patch' Does not apply anymore. Setuptools has removed site.py support: pypa/setuptools#2165 If this is still needed, we may need to re-think it's implementation. Signed-off-by: Alexandru Ardelean <[email protected]>
1 parent 76441fe commit 4452d17

15 files changed

+20
-116
lines changed

lang/python/python3-package.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ PYTHON3_VARS = \
4141
_PYTHON_HOST_PLATFORM="$(_PYTHON_HOST_PLATFORM)" \
4242
__PYVENV_LAUNCHER__="/usr/bin/$(PYTHON3)" \
4343
PYTHONPATH="$(PYTHON3PATH)" \
44+
PYTHON_FOR_BUILD="_PYTHON_PROJECT_BASE=\"$(PKG_BUILD_DIR)\" _PYTHON_HOST_PLATFORM=\"$(_PYTHON_HOST_PLATFORM)\" PYTHONPATH=\"$(PYTHON3PATH)\" _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata" \
4445
PYTHONDONTWRITEBYTECODE=1 \
4546
PYTHONOPTIMIZE="" \
4647
_python_sysroot="$(STAGING_DIR)" \

lang/python/python3-version.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
# Note: keep in sync with setuptools & pip
99
PYTHON3_VERSION_MAJOR:=3
10-
PYTHON3_VERSION_MINOR:=8
11-
PYTHON3_VERSION_MICRO:=5
10+
PYTHON3_VERSION_MINOR:=9
11+
PYTHON3_VERSION_MICRO:=0
1212

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

1515
PYTHON3_SETUPTOOLS_PKG_RELEASE:=1
1616
PYTHON3_PIP_PKG_RELEASE:=1
1717

18-
PYTHON3_SETUPTOOLS_VERSION:=47.1.0
19-
PYTHON3_PIP_VERSION:=20.1.1
18+
PYTHON3_SETUPTOOLS_VERSION:=49.2.1
19+
PYTHON3_PIP_VERSION:=20.2.3

lang/python/python3/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ include $(TOPDIR)/rules.mk
1111
include ../python3-version.mk
1212

1313
PKG_NAME:=python3
14-
PKG_RELEASE:=2
14+
PKG_RELEASE:=1
1515
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:=e3003ed57db17e617acb382b0cade29a248c6026b1bd8aad1f976e9af66a83b0
19+
PKG_HASH:=9c73e63c99855709b9be0b3cc9e5b072cb60f37311e8c4e50f15576a0bf82854
2020

2121
PKG_MAINTAINER:=Alexandru Ardelean <[email protected]>, Jeffery To <[email protected]>
2222
PKG_LICENSE:=Python/2.0

lang/python/python3/files/python3-package-setuptools.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ define Py3Package/python3-setuptools/install
2525
$(PKG_BUILD_DIR)/install-setuptools/usr/lib/python$(PYTHON3_VERSION)/site-packages/setuptools-$(PYTHON3_SETUPTOOLS_VERSION).dist-info \
2626
$(PKG_BUILD_DIR)/install-setuptools/usr/lib/python$(PYTHON3_VERSION)/site-packages/easy_install.py \
2727
$(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages
28-
$(CP) \
29-
$(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/setuptools/site-patch.py \
30-
$(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/setuptools/site-patch.py.txt
3128
find $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/ -path '*/__pycache__/*' -delete
3229
find $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/ -type d -name __pycache__ -delete
3330
endef

lang/python/python3/patches-setuptools/004-site-patch.patch

Lines changed: 0 additions & 14 deletions
This file was deleted.

lang/python/python3/patches/001-enable-zlib.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/Modules/Setup
22
+++ b/Modules/Setup
3-
@@ -334,7 +334,7 @@ _symtable symtablemodule.c
3+
@@ -338,7 +338,7 @@ _symtable symtablemodule.c
44
# Andrew Kuchling's zlib module.
55
# This require zlib 1.1.3 (or later).
66
# See http://www.gzip.org/zlib/

lang/python/python3/patches/003-do-not-run-distutils-tests.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
--- a/Makefile.pre.in
22
+++ b/Makefile.pre.in
3-
@@ -1451,6 +1451,7 @@ libinstall: build_all $(srcdir)/Modules/
3+
@@ -1524,6 +1524,7 @@ libinstall: build_all $(srcdir)/Modules/
44
$(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py \
55
$(DESTDIR)$(LIBDEST); \
66
$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
77
+ifeq (@COMPILE_ALL_TESTS@,yes)
88
if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
99
$(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
1010
$(DESTDIR)$(LIBDEST)/distutils/tests ; \
11-
@@ -1486,6 +1487,7 @@ libinstall: build_all $(srcdir)/Modules/
11+
@@ -1559,6 +1560,7 @@ libinstall: build_all $(srcdir)/Modules/
1212
$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
1313
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1414
$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt

lang/python/python3/patches/004-do-not-write-bytes-codes.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/Python/initconfig.c
22
+++ b/Python/initconfig.c
3-
@@ -152,7 +152,7 @@ int Py_NoSiteFlag = 0; /* Suppress 'impo
3+
@@ -157,7 +157,7 @@ int Py_NoSiteFlag = 0; /* Suppress 'impo
44
int Py_BytesWarningFlag = 0; /* Warn on str(bytes) and str(buffer) */
55
int Py_FrozenFlag = 0; /* Needed by getpath.c */
66
int Py_IgnoreEnvironmentFlag = 0; /* e.g. PYTHONPATH, PYTHONHOME */

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-
@@ -654,7 +654,8 @@ class PyBuildExt(build_ext):
3+
@@ -749,7 +749,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/008-distutils-use-python-sysroot.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Signed-off-by: Thomas Petazzoni <[email protected]>
3636
self.library_dirs.append('.')
3737
--- a/Lib/distutils/sysconfig.py
3838
+++ b/Lib/distutils/sysconfig.py
39-
@@ -18,10 +18,17 @@ from .errors import DistutilsPlatformErr
40-
from .util import get_platform, get_host_platform
39+
@@ -17,10 +17,17 @@ import sys
40+
from .errors import DistutilsPlatformError
4141

4242
# These are needed in a couple of spots, so just compute them once.
4343
-PREFIX = os.path.normpath(sys.prefix)

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-
@@ -631,8 +631,9 @@ class PyBuildExt(build_ext):
3+
@@ -726,8 +726,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).

lang/python/python3/patches/013-getbuildinfo-date-time-source-date-epoch.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/Makefile.pre.in
22
+++ b/Makefile.pre.in
3-
@@ -735,6 +735,16 @@ regen-all: regen-opcode regen-opcode-tar
3+
@@ -764,6 +764,16 @@ regen-all: regen-opcode regen-opcode-tar
44
############################################################################
55
# Special rules for object files
66

@@ -17,7 +17,7 @@
1717
Modules/getbuildinfo.o: $(PARSER_OBJS) \
1818
$(OBJECT_OBJS) \
1919
$(PYTHON_OBJS) \
20-
@@ -743,6 +753,8 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
20+
@@ -772,6 +782,8 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
2121
$(DTRACE_OBJS) \
2222
$(srcdir)/Modules/getbuildinfo.c
2323
$(CC) -c $(PY_CORE_CFLAGS) \

lang/python/python3/patches/014-remove-platform-so-suffix.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/configure
22
+++ b/configure
3-
@@ -15174,7 +15174,7 @@ $as_echo_n "checking ABIFLAGS... " >&6;
3+
@@ -15308,7 +15308,7 @@ $as_echo_n "checking ABIFLAGS... " >&6;
44
$as_echo "$ABIFLAGS" >&6; }
55
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
66
$as_echo_n "checking SOABI... " >&6; }
@@ -11,7 +11,7 @@
1111

1212
--- a/configure.ac
1313
+++ b/configure.ac
14-
@@ -4654,7 +4654,7 @@ AC_SUBST(SOABI)
14+
@@ -4749,7 +4749,7 @@ AC_SUBST(SOABI)
1515
AC_MSG_CHECKING(ABIFLAGS)
1616
AC_MSG_RESULT($ABIFLAGS)
1717
AC_MSG_CHECKING(SOABI)

lang/python/python3/patches/015-abort-on-failed-modules.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-
@@ -441,6 +441,7 @@ class PyBuildExt(build_ext):
3+
@@ -536,6 +536,7 @@ class PyBuildExt(build_ext):
44
print("Failed to build these modules:")
55
print_three_column(failed)
66
print()

lang/python/python3/patches/016-adjust-config-paths.patch

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)