python 3.9.2, take 2 (#6441)

* python: update to 3.9.2

* i hope this fixes the build

Co-authored-by: Lucy Phipps <landfillbaby@users.noreply.github.com>
This commit is contained in:
Lucy Phipps 2021-02-22 12:12:41 +00:00 committed by GitHub
parent 0a8cea5b3a
commit 30fc34c13b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View File

@ -3,10 +3,9 @@ TERMUX_PKG_DESCRIPTION="Python 3 programming language intended to enable clear p
TERMUX_PKG_LICENSE="PythonPL"
TERMUX_PKG_MAINTAINER="@termux"
_MAJOR_VERSION=3.9
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.2
TERMUX_PKG_SRCURL=https://www.python.org/ftp/python/${TERMUX_PKG_VERSION}/Python-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=991c3f8ac97992f3d308fefeb03a64db462574eadbff34ce8bc5bb583d9903ff
TERMUX_PKG_SHA256=3c2034c54f811448f516668dce09d24008a0716c3a794dd8639b5388cbde247d
TERMUX_PKG_DEPENDS="gdbm, libandroid-support, libbz2, libcrypt, libffi, liblzma, libsqlite, ncurses, ncurses-ui-libs, openssl, readline, zlib"
TERMUX_PKG_RECOMMENDS="clang, make, pkg-config"
TERMUX_PKG_SUGGESTS="python-tkinter"

View File

@ -0,0 +1,13 @@
diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py
index b6ecf8e..73fa666 100644
--- a/Lib/_collections_abc.py
+++ b/Lib/_collections_abc.py
@@ -413,7 +413,7 @@ def __subclasshook__(cls, C):
return NotImplemented
-class _CallableGenericAlias(GenericAlias):
+class _CallableGenericAlias(list[int]):
""" Represent `Callable[argtypes, resulttype]`.
This sets ``__args__`` to a tuple containing the flattened``argtypes``