diff --git a/dev-python/slixmpp/slixmpp-1.8.4.recipe b/dev-python/slixmpp/slixmpp-1.8.6.recipe similarity index 59% rename from dev-python/slixmpp/slixmpp-1.8.4.recipe rename to dev-python/slixmpp/slixmpp-1.8.6.recipe index b735671f7..e29efcf80 100644 --- a/dev-python/slixmpp/slixmpp-1.8.4.recipe +++ b/dev-python/slixmpp/slixmpp-1.8.6.recipe @@ -6,11 +6,11 @@ Slixmpp's goals is to only rewrite the core of the library (the low level \ socket handling, the timers, the events dispatching) in order to remove all \ threads." HOMEPAGE="https://codeberg.org/poezio/slixmpp" -COPYRIGHT="2010-2020 Nathanael C. Fritz" +COPYRIGHT="2010 Nathanael C. Fritz" LICENSE="MIT" REVISION="1" SOURCE_URI="https://files.pythonhosted.org/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz" -CHECKSUM_SHA256="406f1f4bab7e7573dd559a441027d3de33d17bba354bcf20ddc6aafba272286b" +CHECKSUM_SHA256="60afcaa7c95a0fb9e7f1159cb70464a5558806d7abae29cd31e3fc883f9b8b0b" ARCHITECTURES="any" @@ -27,8 +27,7 @@ BUILD_REQUIRES=" PYTHON_VERSIONS=(3.10) -for i in "${!PYTHON_VERSIONS[@]}"; do - pythonVersion=${PYTHON_VERSIONS[$i]} +for pythonVersion in ${PYTHON_VERSIONS[@]}; do pythonPackage=python${pythonVersion//.} eval "PROVIDES_${pythonPackage}=\" @@ -42,28 +41,36 @@ for i in "${!PYTHON_VERSIONS[@]}"; do cmd:python$pythonVersion \"" BUILD_REQUIRES+=" + build_$pythonPackage + installer_$pythonPackage setuptools_$pythonPackage + wheel_$pythonPackage " BUILD_PREREQUIRES+=" cmd:python$pythonVersion " done +BUILD() +{ + # This is an "any" package, "building" it will create a + # "$portBaseName-$portVersion-py3-none-any.whl" file that can be installed + # on multiple Python versions, so we only need to build once. + python=python${PYTHON_VERSIONS[0]} + + $python -m build --wheel --skip-dependency-check --no-isolation +} + INSTALL() { - for i in "${!PYTHON_VERSIONS[@]}"; do - pythonVersion=${PYTHON_VERSIONS[$i]} + 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 + # wheel filename has the pattern: $portBaseName-$portVersion-*-none-any.whl + # with the asterisk being: "py2-py3" or "py3". + $python -m installer --p $prefix dist/$portName-$portVersion-*-none-any.whl packageEntries $pythonPackage \ $prefix/lib/python*