ranger: move to Python 3.10. (#11713)

Also, switch from setup.py to build/installer.
This commit is contained in:
OscarL
2025-02-04 05:12:08 -03:00
committed by GitHub
parent f848e3ed0c
commit 19e9b85961

View File

@@ -32,14 +32,14 @@ COPYRIGHT="2009-2018 Roman Zimbelmann
2015-2018 Wojciech Siewierski
2016-2018 Toon Nolten"
LICENSE="GNU GPL v3"
REVISION="1"
REVISION="2"
SOURCE_URI="https://ranger.github.io/$portVersionedName.tar.gz"
CHECKSUM_SHA256="ce088a04c91c25263a9675dc5c43514b7ec1b38c8ea43d9a9d00923ff6cdd251"
ARCHITECTURES="any"
# It only makes sense to package this one just for the default Python version.
pythonVersion=3.9
pythonVersion=3.10
pythonPackage=python${pythonVersion//.}
PROVIDES="
@@ -53,8 +53,10 @@ REQUIRES="
"
BUILD_REQUIRES="
haiku_devel
build_$pythonPackage
installer_$pythonPackage
setuptools_$pythonPackage
wheel_$pythonPackage
"
BUILD_PREREQUIRES="
cmd:python$pythonVersion
@@ -63,12 +65,9 @@ BUILD_PREREQUIRES="
INSTALL()
{
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$python setup.py build install --root=/ --prefix=$prefix
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer --p $prefix dist/*-$portVersion-*.whl
install -d -m 755 $docDir $manDir