pathtools: recipe clean ups, add support for Python 3.10. (#9329)

Should fix watchdog-0.9.0 build issue at buildmasters.
This commit is contained in:
OscarL
2023-09-02 03:02:43 -03:00
committed by GitHub
parent a848303ac7
commit b783a1ec54

View File

@@ -1,12 +1,9 @@
SUMMARY="HTTP library for human beings"
DESCRIPTION="
Requests is an Apache2 Licensed HTTP library, written in Python, \
for human beings."
HOMEPAGE="http://python-requests.org/
http://pypi.python.org/pypi/requests"
SUMMARY="Path utilities for Python "
DESCRIPTION="Pattern matching and various utilities for file systems paths."
HOMEPAGE="https://github.com/gorakhargosh/pathtools"
COPYRIGHT="2010 Yesudeep Mangalapilly"
LICENSE="MIT"
REVISION="7"
REVISION="8"
SOURCE_URI="https://pypi.python.org/packages/source/p/pathtools/pathtools-$portVersion.tar.gz"
CHECKSUM_SHA256="7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0"
@@ -23,22 +20,25 @@ BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39)
PYTHON_VERSIONS=(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]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
INSTALL()
@@ -50,8 +50,10 @@ INSTALL()
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix