diff --git a/dev-python/exceptiongroup/exceptiongroup-1.1.1.recipe b/dev-python/exceptiongroup/exceptiongroup-1.1.1.recipe index bee4de5db..0579558bf 100644 --- a/dev-python/exceptiongroup/exceptiongroup-1.1.1.recipe +++ b/dev-python/exceptiongroup/exceptiongroup-1.1.1.recipe @@ -18,7 +18,7 @@ exception hook won't be installed." HOMEPAGE="https://github.com/agronholm/exceptiongroup" COPYRIGHT="2022 Alex Grönholm" LICENSE="MIT" -REVISION="1" +REVISION="2" SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz" CHECKSUM_SHA256="abe42a62bac0948d95bba6a48f63d8ebb21a7420fd26039a4ec951873fafaee7" SOURCE_FILENAME="exceptiongroup.tar.gz" @@ -36,11 +36,10 @@ BUILD_REQUIRES=" haiku_devel " -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) + +for pythonVersion in ${PYTHON_VERSIONS[@]}; do + pythonPackage=python${pythonVersion//.} eval "PROVIDES_$pythonPackage=\" ${portName}_$pythonPackage = $portVersion @@ -69,15 +68,15 @@ INSTALL() { export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion - 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 $python -m installer -p $prefix dist/*.whl - packageEntries ${PYTHON_PACKAGES[i]} \ + packageEntries $pythonPackage \ $prefix/lib/python* done }