python: Refactor build.sh before bumping to 3.11.2

* Fix license (PythonPL was for CNRI Python)

* Adjust recommended packages (clang etc. are recommended by python-pip)

* Fix included files for python-tkinter

* Separate ensurepip wheels as subpackage (not needed by default now)

* Fix underlinking of `_crypt` extension (not just a refactoring though)

%ci:no-build
This commit is contained in:
termux-pacman-bot
2023-02-05 02:27:51 +00:00
parent f945b661b5
commit 9c6d7e67de
3 changed files with 17 additions and 5 deletions

View File

@@ -1,11 +1,13 @@
TERMUX_SUBPKG_DESCRIPTION="Tkinter support for Python 3"
TERMUX_SUBPKG_DEPENDS="tk"
TERMUX_SUBPKG_DEPENDS="tcl, tk"
TERMUX_SUBPKG_INCLUDE="
bin/idle*
lib/python${_MAJOR_VERSION}/idlelib
lib/python${_MAJOR_VERSION}/tkinter
lib/python${_MAJOR_VERSION}/turtle.py
lib/python${_MAJOR_VERSION}/turtledemo
lib/python${_MAJOR_VERSION}/lib-dynload/_tkinter.cpython-${_MAJOR_VERSION/./}m.so
lib/python${_MAJOR_VERSION}/lib-dynload/_tkinter.*.so
lib/python${_MAJOR_VERSION}/__pycache__/turtle.*.pyc
"
TERMUX_SUBPKG_BREAKS="python (<< 3.11.1-3)"
TERMUX_SUBPKG_REPLACES="python (<< 3.11.1-3)"