wok-next rev 21066
Switch some python packages to traditional build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 06 13:30:23 2018 +0200 (2018-12-06) |
parents | 07b36ab968e3 |
children | 0f7ebcdec85d |
files | python-appdirs/.icon.png python-appdirs/receipt python-packaging/receipt python-pyparsing/receipt python-setuptools/receipt python-six/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/python-appdirs/.icon.png Thu Dec 06 13:30:23 2018 +0200 1.3 @@ -0,0 +1,1 @@ 1.4 +../python/.icon.png 1.5 \ No newline at end of file
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/python-appdirs/receipt Thu Dec 06 13:30:23 2018 +0200 2.3 @@ -0,0 +1,30 @@ 2.4 +# SliTaz package receipt v2. 2.5 + 2.6 +ORIGIN="appdirs" 2.7 +PACKAGE="python-appdirs" 2.8 +VERSION="1.4.3" 2.9 +CATEGORY="python" 2.10 +SHORT_DESC="Determining appropriate platform-specific dirs, e.g. a user data dir" 2.11 +MAINTAINER="al.bobylev@gmail.com" 2.12 +LICENSE="MIT" 2.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 2.14 +HOST_ARCH="any" 2.15 +REPOLOGY="python:appdirs" 2.16 + 2.17 +TARBALL="$ORIGIN-$VERSION.tar.gz" 2.18 +WGET_URL="https://pypi.io/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL" 2.19 + 2.20 +BUILD_DEPENDS="python python3" 2.21 +SPLIT="${PACKAGE/python/python3}:3" 2.22 + 2.23 +compile_rules() { 2.24 + python$SET setup.py install --root=$install 2.25 + 2.26 + find $install -type f -name '*.pyc' -delete 2.27 +} 2.28 + 2.29 +genpkg_rules() { 2.30 + copy @std 2.31 + py="${PACKAGE%%-*}" # python/python3 2.32 + DEPENDS="$py" 2.33 +}
3.1 --- a/python-packaging/receipt Thu Dec 06 12:00:02 2018 +0200 3.2 +++ b/python-packaging/receipt Thu Dec 06 13:30:23 2018 +0200 3.3 @@ -2,7 +2,7 @@ 3.4 3.5 ORIGIN="packaging" 3.6 PACKAGE="python-packaging" 3.7 -VERSION="17.1" 3.8 +VERSION="18.0" 3.9 CATEGORY="python" 3.10 SHORT_DESC="Core utilities for Python packages" 3.11 MAINTAINER="al.bobylev@gmail.com" 3.12 @@ -11,12 +11,17 @@ 3.13 HOST_ARCH="any" 3.14 REPOLOGY="python:packaging" 3.15 3.16 +TARBALL="$ORIGIN-$VERSION.tar.gz" 3.17 +WGET_URL="https://pypi.io/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL" 3.18 + 3.19 BUILD_DEPENDS="python python-pyparsing python-six \ 3.20 python3 python3-pyparsing python3-six" 3.21 SPLIT="${PACKAGE/python/python3}:3" 3.22 3.23 compile_rules() { 3.24 - pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 3.25 + python$SET setup.py install --root=$install 3.26 + 3.27 + find $install -type f -name '*.pyc' -delete 3.28 } 3.29 3.30 genpkg_rules() {
4.1 --- a/python-pyparsing/receipt Thu Dec 06 12:00:02 2018 +0200 4.2 +++ b/python-pyparsing/receipt Thu Dec 06 13:30:23 2018 +0200 4.3 @@ -2,7 +2,7 @@ 4.4 4.5 ORIGIN="pyparsing" 4.6 PACKAGE="python-pyparsing" 4.7 -VERSION="2.2.1" 4.8 +VERSION="2.3.0" 4.9 CATEGORY="python" 4.10 SHORT_DESC="Python parsing module" 4.11 MAINTAINER="pascal.bellard@slitaz.org" 4.12 @@ -11,11 +11,16 @@ 4.13 HOST_ARCH="any" 4.14 REPOLOGY="python:pyparsing" 4.15 4.16 +TARBALL="$ORIGIN-$VERSION.tar.gz" 4.17 +WGET_URL="https://pypi.io/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL" 4.18 + 4.19 BUILD_DEPENDS="python python3" 4.20 SPLIT="${PACKAGE/python/python3}:3" 4.21 4.22 compile_rules() { 4.23 - pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 4.24 + python$SET setup.py install --root=$install 4.25 + 4.26 + find $install -type f -name '*.pyc' -delete 4.27 } 4.28 4.29 genpkg_rules() {
5.1 --- a/python-setuptools/receipt Thu Dec 06 12:00:02 2018 +0200 5.2 +++ b/python-setuptools/receipt Thu Dec 06 13:30:23 2018 +0200 5.3 @@ -2,7 +2,7 @@ 5.4 5.5 ORIGIN="setuptools" 5.6 PACKAGE="python-setuptools" 5.7 -VERSION="40.4.3" 5.8 +VERSION="40.6.2" 5.9 CATEGORY="python" 5.10 SHORT_DESC="Easily download, build, install, upgrade, and uninstall Python packages" 5.11 MAINTAINER="al.bobylev@gmail.com" 5.12 @@ -14,14 +14,20 @@ 5.13 TARBALL="$ORIGIN-$VERSION.tar.gz" 5.14 WGET_URL="https://github.com/pypa/setuptools/archive/v$VERSION.tar.gz" 5.15 5.16 -BUILD_DEPENDS="python python3" 5.17 +BUILD_DEPENDS="\ 5.18 +python python-six python-appdirs python-packaging \ 5.19 +python3 python3-six python3-appdirs python3-packaging" 5.20 SPLIT="${PACKAGE/python/python3}:3" 5.21 5.22 compile_rules() { 5.23 - python$SET bootstrap.py && 5.24 - python$SET -B setup.py install --root=$install 5.25 + # Remove post-release tag since we are using stable tags 5.26 + sed -i '/tag_build = .post/d; /tag_date = 1/d' setup.cfg 5.27 + 5.28 + python$SET bootstrap.py 5.29 + python$SET setup.py install --root=$install 5.30 5.31 find $install -type f -exec chmod g-w '{}' \; # 664->644 5.32 + find $install -type f -name '*.pyc' -delete 5.33 } 5.34 5.35 genpkg_rules() {
6.1 --- a/python-six/receipt Thu Dec 06 12:00:02 2018 +0200 6.2 +++ b/python-six/receipt Thu Dec 06 13:30:23 2018 +0200 6.3 @@ -5,17 +5,22 @@ 6.4 VERSION="1.11.0" 6.5 CATEGORY="python" 6.6 SHORT_DESC="Six is a Python 2 and 3 compatibility library" 6.7 -MAINTAINER="claudinei@slitaz.org" 6.8 +MAINTAINER="devel@slitaz.org" 6.9 LICENSE="MIT" 6.10 WEB_SITE="https://pypi.org/project/$ORIGIN/" 6.11 HOST_ARCH="any" 6.12 REPOLOGY="python:six" 6.13 6.14 +TARBALL="$ORIGIN-$VERSION.tar.gz" 6.15 +WGET_URL="https://pypi.io/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL" 6.16 + 6.17 BUILD_DEPENDS="python python3" 6.18 SPLIT="${PACKAGE/python/python3}:3" 6.19 6.20 compile_rules() { 6.21 - pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 6.22 + python$SET setup.py install --root=$install 6.23 + 6.24 + find $install -type f -name '*.pyc' -delete 6.25 } 6.26 6.27 genpkg_rules() {