blob: b7fbaf9a7f8c40c287d254e6ce6e52f51b5b6bb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/mkpkg
# description: Install and Run Python Applications in Isolated Environments
# url: https://pipx.pypa.io
name=py-pipx
_name=pipx
version=1.17.6
release=3
depends=(python3 py-userpath py-packaging py-argcomplete py-filelock py-platformdirs)
makedeps=(py-installer)
source=(https://files.pythonhosted.org/packages/da/ed/f2a072f3798b5280dc741d45ec12df5fdcc1638f8bcead29f2e509100328/pipx-1.17.6-py3-none-any.whl)
sha256sums=(
"7d069f69e9deef702082a188fedfdc3868fc62d9348ea94fccebe36af5c9eaa0"
)
build() {
_pyver=$(/usr/bin/python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
_sitedir="$PKG/usr/lib/python${_pyver}/site-packages"
install -dm755 "$_sitedir"
/usr/bin/python3 -m installer --no-compile-bytecode --destdir "$PKG" --prefix /usr $_name-$version-py3-none-any.whl
find "$_sitedir" -type d \( -name tests -o -name test \) -prune -exec rm -rf {} +
find "$_sitedir" -name "*.exe" -delete
}
signify() {
untrusted comment: public key
RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}
# vim: filetype=sh
|