forked from ports/contrib
22 lines
757 B
Plaintext
22 lines
757 B
Plaintext
# Description: Discover and load entry points from installed packages
|
|
# URL: https://github.com/takluyver/entrypoints
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: python3-pip
|
|
# Optional: python3-flit
|
|
|
|
name=python3-entrypoints
|
|
version=0.4
|
|
release=1
|
|
source=(https://github.com/takluyver/entrypoints/archive/$version/$name-$version-github.tar.gz
|
|
https://pypi.io/packages/source/e/entrypoints/entrypoints-$version.tar.gz)
|
|
|
|
build() {
|
|
cd entrypoints-$version
|
|
if prt-get isinst python3-flit; then
|
|
/usr/bin/python3 -m flit build --format wheel
|
|
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps dist/*.whl
|
|
else
|
|
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps entrypoints
|
|
fi
|
|
}
|