ports/contrib (3.7): python3-idna: use pip to install, if python-flit-core is not installed already => cyclic dependencies; fixes unversioned python package
commit 659983cc0c486059a6a3fd6f56322ab3475a7579 Author: Tim Biermann <tbier@posteo.de> Date: Sat Apr 1 12:51:42 2023 +0200 python3-idna: use pip to install, if python-flit-core is not installed already => cyclic dependencies; fixes unversioned python package diff --git a/python3-idna/.footprint b/python3-idna/.footprint index e5434d6f5..51859422e 100644 --- a/python3-idna/.footprint +++ b/python3-idna/.footprint @@ -2,29 +2,21 @@ drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/lib/ drwxr-xr-x root/root usr/lib/python3.10/ drwxr-xr-x root/root usr/lib/python3.10/site-packages/ -drwxr-xr-x root/root usr/lib/python3.10/site-packages/idna-0.0.0-py3.10.egg-info/ --rw-r--r-- root/root usr/lib/python3.10/site-packages/idna-0.0.0-py3.10.egg-info/PKG-INFO --rw-r--r-- root/root usr/lib/python3.10/site-packages/idna-0.0.0-py3.10.egg-info/SOURCES.txt --rw-r--r-- root/root usr/lib/python3.10/site-packages/idna-0.0.0-py3.10.egg-info/dependency_links.txt --rw-r--r-- root/root usr/lib/python3.10/site-packages/idna-0.0.0-py3.10.egg-info/top_level.txt +drwxr-xr-x root/root usr/lib/python3.10/site-packages/idna-3.4.dist-info/ +-rw-r--r-- root/root usr/lib/python3.10/site-packages/idna-3.4.dist-info/LICENSE.md +-rw-r--r-- root/root usr/lib/python3.10/site-packages/idna-3.4.dist-info/METADATA +-rw-r--r-- root/root usr/lib/python3.10/site-packages/idna-3.4.dist-info/RECORD +-rw-r--r-- root/root usr/lib/python3.10/site-packages/idna-3.4.dist-info/WHEEL drwxr-xr-x root/root usr/lib/python3.10/site-packages/idna/ -rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__init__.py drwxr-xr-x root/root usr/lib/python3.10/site-packages/idna/__pycache__/ --rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/__init__.cpython-310.opt-1.pyc -rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/__init__.cpython-310.pyc --rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/codec.cpython-310.opt-1.pyc -rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/codec.cpython-310.pyc --rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/compat.cpython-310.opt-1.pyc -rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/compat.cpython-310.pyc --rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/core.cpython-310.opt-1.pyc -rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/core.cpython-310.pyc --rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/idnadata.cpython-310.opt-1.pyc -rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/idnadata.cpython-310.pyc --rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/intranges.cpython-310.opt-1.pyc -rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/intranges.cpython-310.pyc --rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/package_data.cpython-310.opt-1.pyc -rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/package_data.cpython-310.pyc --rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/uts46data.cpython-310.opt-1.pyc -rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/__pycache__/uts46data.cpython-310.pyc -rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/codec.py -rw-r--r-- root/root usr/lib/python3.10/site-packages/idna/compat.py diff --git a/python3-idna/.signature b/python3-idna/.signature index 1030c8305..c7d38f8c4 100644 --- a/python3-idna/.signature +++ b/python3-idna/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF35vWt5thzpQm8uQsPXnIIg9ujpBmm2ui7rpPN3g+//JEKCDg+uW0e7QqeJfhk+E35cqM3CRgLHpU8FwnqZiNFwQ= -SHA256 (Pkgfile) = c72fa7693a596a109bc1a4d545ac714d8dd2b80fb2516de6efdd041ff2d0d442 -SHA256 (.footprint) = ae4e8e23f0e6237e762f36662c21b76f65d1509d87db55a7da56ee06cd281b98 +RWSagIOpLGJF339L8U8Z83izux0NfwRaFJO4GRQZDFhehpLVnpNA3szRTwqJCLSGMfEj4i6PKqEN3YQhxbCGoVAwWFCdLB33zQU= +SHA256 (Pkgfile) = 7bf29b078470a56188c8a03b0fb722d2075139b1780d58d0fa307fc6425fb59b +SHA256 (.footprint) = 82226d6266218bbaeef5ee8a90c1e04d0643697f89b7d0fc52e2fdd281dfce2c SHA256 (idna-3.4.tar.gz) = 814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 diff --git a/python3-idna/Pkgfile b/python3-idna/Pkgfile index c0d79c5a0..03c9fc9e6 100644 --- a/python3-idna/Pkgfile +++ b/python3-idna/Pkgfile @@ -1,7 +1,8 @@ # Description: Internationalized Domain Names in Applications (IDNA). # URL: https://github.com/kjd/idna # Maintainer: Danny Rawlins, crux at romster dot me -# Depends on: python3-setuptools +# Depends on: python3-pip +# Optional: python3-flit-core name=python3-idna version=3.4 @@ -10,6 +11,15 @@ source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${ build() { cd ${name#*-}-$version - /usr/bin/python3 setup.py build - /usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 + + _pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])') + + if prt-get isinst python3-flit-core; then + /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation + /usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl + else + /usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --compile --no-deps idna==$version + fi + + rm -rf $PKG/usr/lib/python$_pyver/site-packages/idna-$version.dist-info/{INSTALLER,REQUESTED} }
participants (1)
-
crux@crux.nu