wok-next annotate python-setuptools/receipt @ rev 21605

dropbear: add ed25519 key
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 25 08:01:52 2020 +0000 (2020-06-25)
parents 019246ad2f42
children
rev   line source
al@20973 1 # SliTaz package receipt v2.
al@20973 2
al@20973 3 ORIGIN="setuptools"
al@20973 4 PACKAGE="python-setuptools"
al@21066 5 VERSION="40.6.2"
al@20973 6 CATEGORY="python"
al@20973 7 SHORT_DESC="Easily download, build, install, upgrade, and uninstall 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:setuptools"
al@20973 13
al@20977 14 TARBALL="$ORIGIN-$VERSION.tar.gz"
al@20977 15 WGET_URL="https://github.com/pypa/setuptools/archive/v$VERSION.tar.gz"
al@20977 16
al@21066 17 BUILD_DEPENDS="\
al@21066 18 python python-six python-appdirs python-packaging \
al@21066 19 python3 python3-six python3-appdirs python3-packaging"
al@20973 20 SPLIT="${PACKAGE/python/python3}:3"
al@20973 21
al@20973 22 compile_rules() {
al@21066 23 # Remove post-release tag since we are using stable tags
al@21066 24 sed -i '/tag_build = .post/d; /tag_date = 1/d' setup.cfg
al@21066 25
al@21066 26 python$SET bootstrap.py
al@21066 27 python$SET setup.py install --root=$install
al@20977 28
al@20977 29 find $install -type f -exec chmod g-w '{}' \; # 664->644
al@21066 30 find $install -type f -name '*.pyc' -delete
al@20973 31 }
al@20973 32
al@20973 33 genpkg_rules() {
al@20973 34 copy @std
al@20973 35 py=${PACKAGE%%-*} # python/python3
al@20973 36 DEPENDS="$py"
al@20973 37 }