aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-ordered-set/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/py3-ordered-set/APKBUILD')
-rw-r--r--main/py3-ordered-set/APKBUILD13
1 files changed, 8 insertions, 5 deletions
diff --git a/main/py3-ordered-set/APKBUILD b/main/py3-ordered-set/APKBUILD
index f992e2a723..7e5c7350a5 100644
--- a/main/py3-ordered-set/APKBUILD
+++ b/main/py3-ordered-set/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-ordered-set
pkgver=4.0.2
-pkgrel=0
+pkgrel=1
pkgdesc="MutableSet that remembers its order"
url="https://github.com/LuminosoInsight/ordered-set"
arch="noarch"
@@ -13,13 +13,16 @@ builddir="$srcdir/ordered-set-$pkgver"
package() {
# Can't use setuptools since setuptools depends on this
- mkdir -p "$pkgdir"/usr/lib/python3.8/site-packages
+ local _site_pkgs="$(python3 -c 'import site; print(site.getsitepackages()[0])')"
+ local _py3ver=$(python3 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')
+
+ mkdir -p "$pkgdir"/"$_site_pkgs"
cp -rv ordered_set.egg-info \
- "$pkgdir"/usr/lib/python3.8/site-packages/ordered_set-$pkgver-py3.8.egg-info
- cp -rv ordered_set.py "$pkgdir"/usr/lib/python3.8/site-packages/
+ "$pkgdir"/$_site_pkgs/ordered_set-$pkgver-py$_py3ver.egg-info
+ cp -rv ordered_set.py "$pkgdir"/$_site_pkgs/
- python3 -m compileall -f -q "$pkgdir"/usr/lib/python3.8/site-packages/*.py
+ python3 -m compileall -f -q "$pkgdir"/$_site_pkgs/*.py
}
sha512sums="d7031ae90fdaf116c27415170a7197be34ff4b977a03684a6fb53dc453845a97cd32b9666ed3ae58fb7bc722ff3b2b4f2e156578841033759b490b359a5619b4 ordered-set-4.0.2.tar.gz"