wok-next view python-setuptools/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | 019246ad2f42 |
children |
line source
1 # SliTaz package receipt v2.
3 ORIGIN="setuptools"
4 PACKAGE="python-setuptools"
5 VERSION="40.6.2"
6 CATEGORY="python"
7 SHORT_DESC="Easily download, build, install, upgrade, and uninstall Python packages"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="MIT"
10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
11 HOST_ARCH="any"
12 REPOLOGY="python:setuptools"
14 TARBALL="$ORIGIN-$VERSION.tar.gz"
15 WGET_URL="https://github.com/pypa/setuptools/archive/v$VERSION.tar.gz"
17 BUILD_DEPENDS="\
18 python python-six python-appdirs python-packaging \
19 python3 python3-six python3-appdirs python3-packaging"
20 SPLIT="${PACKAGE/python/python3}:3"
22 compile_rules() {
23 # Remove post-release tag since we are using stable tags
24 sed -i '/tag_build = .post/d; /tag_date = 1/d' setup.cfg
26 python$SET bootstrap.py
27 python$SET setup.py install --root=$install
29 find $install -type f -exec chmod g-w '{}' \; # 664->644
30 find $install -type f -name '*.pyc' -delete
31 }
33 genpkg_rules() {
34 copy @std
35 py=${PACKAGE%%-*} # python/python3
36 DEPENDS="$py"
37 }