mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
pbr, gitpython, gerrit: migrate to Python 3.9 and 3.10
Remove the older Python versions from the recipes.
This commit is contained in:
@@ -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]}
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user