wok-next annotate python-pip/receipt @ rev 21622
updated elfkickers (3.0 -> 3.1a)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 14:35:46 2020 +0100 (2020-06-25) |
parents | 019246ad2f42 |
children |
rev | line source |
---|---|
al@20973 | 1 # SliTaz package receipt v2. |
al@20973 | 2 |
al@20973 | 3 ORIGIN="pip" |
al@20973 | 4 PACKAGE="python-pip" |
al@21067 | 5 VERSION="18.1" |
al@20973 | 6 CATEGORY="python" |
al@20973 | 7 SHORT_DESC="The PyPA recommended tool for installing Python packages" |
al@20973 | 8 MAINTAINER="al.bobylev@gmail.com" |
al@20973 | 9 LICENSE="MIT" |
al@20973 | 10 WEB_SITE="https://pypi.org/project/$ORIGIN/" |
al@20973 | 11 HOST_ARCH="any" |
al@20973 | 12 REPOLOGY="python:pip" |
al@20973 | 13 |
al@20973 | 14 TARBALL="$ORIGIN-$VERSION.tar.gz" |
al@20977 | 15 WGET_URL="https://github.com/pypa/pip/archive/$VERSION.tar.gz" |
al@20973 | 16 |
al@20973 | 17 BUILD_DEPENDS="python python-setuptools python3 python3-setuptools" |
al@20973 | 18 SPLIT="${PACKAGE/python/python3}:3" |
al@20973 | 19 |
al@20973 | 20 compile_rules() { |
al@20973 | 21 python$SET -B setup.py install --root=$install |
al@21067 | 22 |
al@21067 | 23 find $install -type f -exec chmod g-w '{}' \; # 664->644 |
al@20973 | 24 } |
al@20973 | 25 |
al@20973 | 26 genpkg_rules() { |
al@20973 | 27 copy @std |
al@20973 | 28 py=${PACKAGE%%-*} # python/python3 |
al@20973 | 29 DEPENDS="$py $py-setuptools" |
al@20977 | 30 |
al@20977 | 31 # python3-pip: do not overwrite pip from python-pip (when both in use) |
al@20977 | 32 case $py in |
al@20977 | 33 python3) rm $fs/usr/bin/pip;; |
al@20977 | 34 esac |
al@20973 | 35 } |