regex: drop Python 3.9 support.

Only on-tree user (calibre) targets 3.10 only already.
This commit is contained in:
Oscar Lesta
2025-09-19 19:06:04 -03:00
committed by OscarL
parent 679ed1e578
commit 56d3710e8e

View File

@@ -4,7 +4,7 @@ standard re module, but offers additional functionality."
HOMEPAGE="https://pypi.org/project/regex/"
COPYRIGHT="2013-2020 Matthew Barnett"
LICENSE="MIT"
REVISION="6"
REVISION="7"
SOURCE_URI="https://pypi.org/packages/source/r/regex/regex-$portVersion.tar.gz"
CHECKSUM_SHA256="d0f424328f9822b0323b3b6f2e4b9c90960b24743d220763c7f07071e0778351"
@@ -26,13 +26,12 @@ BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
PYTHON_VERSIONS=(3.10)
eval "PROVIDES_${pythonPackage}=\"
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
if [ "$targetArchitecture" = x86_gcc2 ]; then
@@ -54,19 +53,20 @@ done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
packageEntries $pythonPackage \
$prefix/lib/python*
done
}