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:
parent
0a8cea5b3a
commit
30fc34c13b
@ -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"
|
||||
|
13
packages/python/fix-GenericAlias.patch
Normal file
13
packages/python/fix-GenericAlias.patch
Normal 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``
|
Loading…
Reference in New Issue
Block a user