mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
asttokens, drop python3.9 (#12667)
This commit is contained in:
@@ -7,7 +7,7 @@ that resulted in those nodes, for example for automated refactoring or highlight
|
||||
HOMEPAGE="https://github.com/gristlabs/asttokens"
|
||||
COPYRIGHT="2016 Grist Labs"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://pypi.io/packages/source/a/$portName/$portName-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="4622110b2a6f30b77e1473affaa97e711bc2f07d3f10848420ff1898edbe94f3"
|
||||
|
||||
@@ -20,11 +20,10 @@ REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
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
|
||||
@@ -39,6 +38,7 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
setuptools_$pythonPackage
|
||||
wheel_$pythonPackage
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES+="
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
@@ -52,13 +52,14 @@ done
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
python=python${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
|
||||
}
|
||||
@@ -67,7 +68,7 @@ INSTALL()
|
||||
TEST()
|
||||
{
|
||||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||||
python=python${PYTHON_VERSIONS[$i]}
|
||||
python=python$pythonVersion
|
||||
$python -m pytest
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user