_python* packages: do not use Python 3.9 as "defaultVersion" anymore. (#12589)

While switching to 3.10 as default, lets just drop the 3.9 versions of these packages.

----

Checked runtime and build dependencies, but only tried a build of `hatchling` locally. I'll merge as is, and if something breaks, will fix later on.
This commit is contained in:
OscarL
2025-07-14 15:09:48 -03:00
committed by GitHub
parent 3aeff9ddd0
commit a6bff52757
5 changed files with 46 additions and 53 deletions

View File

@@ -5,7 +5,7 @@ Python applications (in particular web-based applications.)"
HOMEPAGE="http://babel.pocoo.org/"
COPYRIGHT="2013-2022 by the Babel Team"
LICENSE="BSD (3-clause)"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/python-babel/babel/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="37de3435fdec7c3267430765fc3ebe05cd234e65774ff1dc42a7b3b5cd39ef97"
SOURCE_FILENAME="babel-v$portVersion.tar.gz"
@@ -25,12 +25,11 @@ BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultVersion=3.9
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
PYTHON_VERSIONS=(3.10)
defaultVersion=3.10
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_${pythonPackage}=\"
${portName}_$pythonPackage = $portVersion
@@ -60,15 +59,17 @@ done
INSTALL()
{
cp $sourceDir2/* cldr
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 import_cldr build install \
--root=/ --prefix=$prefix
@@ -80,9 +81,8 @@ INSTALL()
ln -sr $prefix/bin/pybabel-$pythonVersion $prefix/bin/pybabel
fi
packageEntries $pythonPackage \
packageEntries $pythonPackage \
$prefix/lib/python* \
$prefix/bin
done
}