Task Todo List Remove hardcoded python version strings

2023-01-13 - David Runge

To have less manual interaction with PKGBUILDs when upgrading the Python interpreter, the version strings should not be hardcoded (e.g. `python3.10`).

To get the (major.minor) version string of the Python available during build, use [1]:

local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')

To get the site-packages directory of the Python available during build, use [2]:

local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")

[1] https://wiki.archlinux.org/title/Python_package_guidelines#Using_python_version
[2] https://wiki.archlinux.org/title/Python_package_guidelines#Using_site-packages

Link to lists of pkgbase values:

Filter Todo List Packages

Select filter criteria
10 packages displayed out of 10 total packages.
Arch Repository Name Current Version Staging Version Maintainers Status Last Touched By
x86_64 Extra boost 1.83.0-5 foutrelis Complete foutrelis
any Extra deluge 1:2.1.1-4 heftig Complete heftig
x86_64 Core gpgme 1.23.2-1 eworm Complete dvzrv
x86_64 Extra libpst 0.6.76-9 heftig Complete heftig
x86_64 Extra libreoffice-fresh 24.2.0-1 24.2.0-2 andyrtr Complete andyrtr
x86_64 Extra libreoffice-still 7.6.4-1 7.6.4-2 andyrtr Complete andyrtr
x86_64 Extra libvoikko 4.3.2-2 felixonmars Complete jelle
x86_64 Extra python-numpy 1.26.4-1 felixonmars Complete dvzrv
any Extra python-validate-pyproject 0.13-1 felixonmars Complete dvzrv
x86_64 Extra subversion 1.14.2-13 felixonmars Complete jelle