wok-next annotate python-pip/receipt @ rev 20973
Separate python-setuptools and python-pip from the main python package to be able to update them apart from python
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Sep 23 04:19:29 2018 +0300 (2018-09-23) |
parents | |
children | 019246ad2f42 |
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@20973 | 5 VERSION="18.0" |
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@20973 | 15 WGET_URL="https://files.pythonhosted.org/packages/source/p/pip/$TARBALL" |
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@20973 | 22 |
al@20973 | 23 } |
al@20973 | 24 |
al@20973 | 25 genpkg_rules() { |
al@20973 | 26 copy @std |
al@20973 | 27 py=${PACKAGE%%-*} # python/python3 |
al@20973 | 28 DEPENDS="$py $py-setuptools" |
al@20973 | 29 } |