1SUMMARY="A Python library for creating 'editable wheels'" 2DESCRIPTION="This library supports the building of wheels which, when installed, will expose \ 3packages in a local directory on 'sys.path' in 'editable mode'. In other words, changes to the \ 4package source will be reflected in the package visible to Python, without needing a reinstall." 5HOMEPAGE="https://github.com/pfmoore/editables" 6COPYRIGHT="2020 Paul Moore" 7LICENSE="MIT" 8REVISION="1" 9SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz" 10CHECKSUM_SHA256="42f7240164af1e028ccb7b60e72f54bbd8b639e9409595fbeffac5d3fb610643" 11SOURCE_FILENAME="editables-$portVersion.tar.gz" 12 13ARCHITECTURES="any" 14 15PROVIDES=" 16 $portName = $portVersion 17 " 18REQUIRES=" 19 haiku 20 " 21 22BUILD_REQUIRES=" 23 haiku_devel 24 " 25 26PYTHON_PACKAGES=(python39 python310) 27PYTHON_VERSIONS=(3.9 3.10) 28for i in "${!PYTHON_PACKAGES[@]}"; do 29 pythonPackage=${PYTHON_PACKAGES[i]} 30 pythonVersion=${PYTHON_VERSIONS[$i]} 31 32 eval "PROVIDES_$pythonPackage=\" 33 ${portName}_$pythonPackage = $portVersion 34 \"" 35 eval "REQUIRES_$pythonPackage=\" 36 haiku 37 cmd:python$pythonVersion 38 \"" 39 BUILD_REQUIRES+=" 40 setuptools_$pythonPackage 41 " 42 BUILD_PREREQUIRES+=" 43 cmd:python$pythonVersion 44 " 45done 46 47INSTALL() 48{ 49 for i in "${!PYTHON_PACKAGES[@]}"; do 50 pythonPackage=${PYTHON_PACKAGES[i]} 51 pythonVersion=${PYTHON_VERSIONS[$i]} 52 53 python=python$pythonVersion 54 installLocation=$prefix/lib/$python/vendor-packages/ 55 export PYTHONPATH=$installLocation:$PYTHONPATH 56 mkdir -p $installLocation 57 rm -rf build 58 $python setup.py build install \ 59 --root=/ --prefix=$prefix 60 61 packageEntries $pythonPackage \ 62 $prefix/lib/python* 63 done 64} 65