forked from ports/contrib
python3-idna: always use python3-flit-core
This commit is contained in:
parent
f2e9b053ef
commit
aa9903f05c
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF339L8U8Z83izux0NfwRaFJO4GRQZDFhehpLVnpNA3szRTwqJCLSGMfEj4i6PKqEN3YQhxbCGoVAwWFCdLB33zQU=
|
||||
SHA256 (Pkgfile) = 7bf29b078470a56188c8a03b0fb722d2075139b1780d58d0fa307fc6425fb59b
|
||||
RWSagIOpLGJF314UgVYPy02FLsibKm8sJnK0ixUAfbUi9e8zWdv5n+kTclYWpFTiBcIi0M3j16iydK/U3+ky6Q8p8I0Goa06CwU=
|
||||
SHA256 (Pkgfile) = 06ed26a59a627ae14b01a93d4f757b4cde0c251f9fa6247a62891ce4b6cffea9
|
||||
SHA256 (.footprint) = 82226d6266218bbaeef5ee8a90c1e04d0643697f89b7d0fc52e2fdd281dfce2c
|
||||
SHA256 (idna-3.4.tar.gz) = 814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4
|
||||
|
@ -1,8 +1,7 @@
|
||||
# Description: Internationalized Domain Names in Applications (IDNA).
|
||||
# URL: https://github.com/kjd/idna
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Depends on: python3-pip
|
||||
# Optional: python3-flit-core
|
||||
# Depends on: python3-build python3-flit-core python3-installer
|
||||
|
||||
name=python3-idna
|
||||
version=3.4
|
||||
@ -12,14 +11,6 @@ source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${
|
||||
build() {
|
||||
cd ${name#*-}-$version
|
||||
|
||||
_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}
|
||||
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
||||
/usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user