wok-next annotate python-pip/receipt @ rev 20977

"Pythonize" egenix-mx-base and snimpy
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Sep 26 00:03:58 2018 +0300 (2018-09-26)
parents f47adfbeb944
children 0f7ebcdec85d
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@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@20973 22 }
al@20973 23
al@20973 24 genpkg_rules() {
al@20973 25 copy @std
al@20973 26 py=${PACKAGE%%-*} # python/python3
al@20973 27 DEPENDS="$py $py-setuptools"
al@20977 28
al@20977 29 # python3-pip: do not overwrite pip from python-pip (when both in use)
al@20977 30 case $py in
al@20977 31 python3) rm $fs/usr/bin/pip;;
al@20977 32 esac
al@20973 33 }