diff options
author | Tim Biermann <tbier@posteo.de> | 2022-02-12 16:19:11 +0100 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2022-02-12 16:46:47 +0100 |
commit | c7c1fb6375ca03fe9b034a7aacf0694bc2b17ead (patch) | |
tree | dfa0ba6ef1db99fe39840b6f38140b6f2dbd8cf7 /python3-entrypoints/Pkgfile | |
parent | 97566ebc7f1e07cd8cf64446df94a2a8dc75f3d1 (diff) | |
download | contrib-c7c1fb6375ca03fe9b034a7aacf0694bc2b17ead.tar.gz contrib-c7c1fb6375ca03fe9b034a7aacf0694bc2b17ead.tar.xz |
[notify] python3-entrypoints: new dependencies: python3-pip
Diffstat (limited to 'python3-entrypoints/Pkgfile')
-rw-r--r-- | python3-entrypoints/Pkgfile | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/python3-entrypoints/Pkgfile b/python3-entrypoints/Pkgfile index 1f64186ff..67cd6a6d1 100644 --- a/python3-entrypoints/Pkgfile +++ b/python3-entrypoints/Pkgfile @@ -1,26 +1,21 @@ # 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-setuptools +# Depends on: python3-pip +# Optional: python3-flit name=python3-entrypoints -version=0.3 +version=0.4 release=1 source=(https://github.com/takluyver/entrypoints/archive/$version/$name-$version-github.tar.gz - https://files.pythonhosted.org/packages/py2.py3/e/entrypoints/entrypoints-$version-py2.py3-none-any.whl https://pypi.io/packages/source/e/entrypoints/entrypoints-$version.tar.gz) build() { cd entrypoints-$version - # install -Dm644 entrypoints.py $PKG/usr/lib/python3.9/site-packages/entrypoints.py - # _dist="entrypoints-$version.dist-info" - # cd $SRC/$_dist - # for _i in ./*; do - # install -Dm644 $_i "$PKG/usr/lib/python3.9/site-packages/$_dist/$_i" - # done - /usr/bin/python3 setup.py build - /usr/bin/python3 setup.py install --prefix=/usr \ - --root=$PKG \ - --skip-build \ - -O1 + 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 } |