pbr, gitpython, gerrit: migrate to Python 3.9 and 3.10

Remove the older Python versions from the recipes.
This commit is contained in:
PulkoMandy
2022-11-20 14:51:30 +01:00
parent e9ede922e6
commit e984a78cd3
3 changed files with 11 additions and 23 deletions

View File

@@ -21,8 +21,8 @@ BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python3)
PYTHON_VERSIONS=(3.7)
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}

View File

@@ -27,8 +27,8 @@ BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3 python38 python39)
PYTHON_VERSIONS=(2.7 3.7 3.8 3.9)
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
@@ -44,17 +44,11 @@ BUILD_REQUIRES="$BUILD_REQUIRES
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python+="
cmd:pbr2
"
PROVIDES_python3+="
PROVIDES_python39+="
cmd:pbr
"
PROVIDES_python38+="
cmd:pbr38
"
PROVIDES_python39+="
cmd:pbr39
PROVIDES_python310+="
cmd:pbr310
"
BUILD()
@@ -87,14 +81,8 @@ INSTALL()
$python setup.py install \
--root=/ --prefix="$prefix"
if [ "$pythonPackage" = python ]; then
mv "$binDir"/pbr "$binDir"/pbr2
fi
if [ "$pythonPackage" = python38 ]; then
mv "$binDir"/pbr "$binDir"/pbr38
fi
if [ "$pythonPackage" = python39 ]; then
mv "$binDir"/pbr "$binDir"/pbr39
if [ "$pythonPackage" = python310 ]; then
mv "$binDir"/pbr "$binDir"/pbr310
fi
packageEntries $pythonPackage \