1SUMMARY="API to call PEP 517 hooks" 2DESCRIPTION="PEP 517 specifies a standard API for systems which build Python packages. 3 4PEP 660 extends it with a build mode that leads to editable installs. 5 6This package contains wrappers around the hooks specified by PEP 517 and 7PEP 660. It provides: 8 9- A mechanism to call the hooks in a subprocess, so they are isolated from the current process. 10- Fallbacks for the optional hooks, so that frontends can call the hooks without checking which \ 11are defined." 12HOMEPAGE="https://pypi.org/project/pep517/" 13COPYRIGHT="2017 Thomas Kluyver" 14LICENSE="MIT" 15REVISION="3" 16pypiVersion="0a/65/6e656d49c679136edfba25f25791f45ffe1ea4ae2ec1c59fe9c35e061cd1" 17SOURCE_URI="https://files.pythonhosted.org/packages/$pypiVersion/pep517-0.12.0.tar.gz" 18CHECKSUM_SHA256="931378d93d11b298cf511dd634cf5ea4cb249a28ef84160b3247ee9afb4e8ab0" 19 20ARCHITECTURES="any" 21 22PROVIDES=" 23 $portName = $portVersion 24 " 25REQUIRES=" 26 haiku 27 " 28 29BUILD_REQUIRES=" 30 haiku_devel 31 " 32 33PYTHON_PACKAGES=(python39 python310) 34PYTHON_VERSIONS=(3.9 3.10) 35for i in "${!PYTHON_PACKAGES[@]}"; do 36pythonPackage=${PYTHON_PACKAGES[i]} 37pythonVersion=${PYTHON_VERSIONS[$i]} 38eval "PROVIDES_${pythonPackage}=\"\ 39 ${portName}_$pythonPackage = $portVersion\ 40 \"; \ 41REQUIRES_$pythonPackage=\"\ 42 haiku\n\ 43 cmd:python$pythonVersion\n\ 44 tomli_$pythonPackage\ 45 \"" 46BUILD_REQUIRES="$BUILD_REQUIRES 47 setuptools_$pythonPackage" 48BUILD_PREREQUIRES="$BUILD_PREREQUIRES 49 cmd:python$pythonVersion" 50done 51 52INSTALL() 53{ 54 for i in "${!PYTHON_PACKAGES[@]}"; do 55 pythonPackage=${PYTHON_PACKAGES[i]} 56 pythonVersion=${PYTHON_VERSIONS[$i]} 57 58 python=python$pythonVersion 59 installLocation=$prefix/lib/$python/vendor-packages/ 60 export PYTHONPATH=$installLocation:$PYTHONPATH 61 mkdir -p $installLocation 62 rm -rf build 63 $python setup.py build install \ 64 --root=/ --prefix=$prefix 65 66 packageEntries $pythonPackage \ 67 $prefix/lib/python* 68 done 69} 70