mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
70 lines
1.6 KiB
Bash
70 lines
1.6 KiB
Bash
SUMMARY="A Python development support library"
|
|
DESCRIPTION="The py lib is a Python development support library featuring the following tools and modules:
|
|
py.path: uniform local and svn path objects
|
|
py.apipkg: explicit API control and lazy-importing
|
|
py.iniconfig: easy parsing of .ini files
|
|
py.code: dynamic code generation and introspection
|
|
py.path: uniform local and svn path objects"
|
|
HOMEPAGE="https://pypi.org/project/py"
|
|
COPYRIGHT="2004-2020 Holger Krekel and others."
|
|
LICENSE="MIT"
|
|
REVISION="4"
|
|
SOURCE_URI="https://files.pythonhosted.org/packages/source/p/py/py-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
py = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
|
|
PYTHON_VERSIONS=(3.10)
|
|
|
|
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
eval "PROVIDES_$pythonPackage=\"
|
|
${portName}_$pythonPackage = $portVersion
|
|
\""
|
|
eval "REQUIRES_$pythonPackage=\"
|
|
haiku
|
|
cmd:python$pythonVersion
|
|
\""
|
|
|
|
BUILD_REQUIRES+="
|
|
setuptools_scm_$pythonPackage
|
|
"
|
|
BUILD_PREREQUIRES+="
|
|
cmd:python$pythonVersion
|
|
"
|
|
done
|
|
|
|
INSTALL()
|
|
{
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion
|
|
|
|
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
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
|
|
|
|
packageEntries $pythonPackage \
|
|
$prefix/lib/python*
|
|
done
|
|
}
|