_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

@@ -3,7 +3,7 @@ DESCRIPTION="This is the extensible, standards compliant build backend used by H
HOMEPAGE="https://hatch.pypa.io/dev/history/hatchling/"
COPYRIGHT="2021-present Ofek Lev"
LICENSE="MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://files.pythonhosted.org/packages/source/h/$portName/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="7064631a512610b52250a4d3ff1bd81551d6d1431c4eb7b72e734df6c74f4262"
@@ -20,12 +20,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
@@ -62,8 +61,8 @@ done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
@@ -75,7 +74,7 @@ INSTALL()
ln -sr $prefix/bin/hatchling-$pythonVersion $prefix/bin/hatchling
fi
packageEntries ${PYTHON_PACKAGES[i]} \
packageEntries $pythonPackage \
$prefix/lib/python* \
$prefix/bin
done