SUMMARY="A library for installing Python wheels" DESCRIPTION="This is a low-level library for installing a Python package from a wheel distribution. It provides basic functionality and abstractions for handling wheels and installing packages from \ wheels. - Logic for unpacking a wheel (i.e. installation). - Abstractions for various parts of the unpacking process. - Extensible simple implementations of the abstractions. - Platform-independent Python script wrapper generation." HOMEPAGE="https://pypi.org/project/installer/" COPYRIGHT="2020 Pradyun Gedam" LICENSE="MIT" REVISION="1" pypiVersion="74/b7/9187323cd732840f1cddd6a9f05961406636b50c799eef37c920b63110c0" SOURCE_URI="https://files.pythonhosted.org/packages/$pypiVersion/installer-$portVersion.tar.gz" CHECKSUM_SHA256="f970995ec2bb815e2fdaf7977b26b2091e1e386f0f42eafd5ac811953dc5d445" PATCHES="1a3a7d208fd48446de3d35e5c640378dc1dfd437.patch" ARCHITECTURES="any" PROVIDES=" $portName = $portVersion " REQUIRES=" haiku " BUILD_REQUIRES=" haiku_devel " PYTHON_PACKAGES=(python3 python38 python39 python310) PYTHON_VERSIONS=(3.7 3.8 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" done INSTALL() { for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} 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 }