# HG changeset patch # User Aleksej Bobylev # Date 1544095823 -7200 # Node ID 1ee5239fdfdc1de51c1d88c46334502944fc3bd6 # Parent 07b36ab968e33bd379cb92ed1d4d08f5e6e4ffa4 Switch some python packages to traditional build diff -r 07b36ab968e3 -r 1ee5239fdfdc python-appdirs/.icon.png --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-appdirs/.icon.png Thu Dec 06 13:30:23 2018 +0200 @@ -0,0 +1,1 @@ +../python/.icon.png \ No newline at end of file diff -r 07b36ab968e3 -r 1ee5239fdfdc python-appdirs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-appdirs/receipt Thu Dec 06 13:30:23 2018 +0200 @@ -0,0 +1,30 @@ +# SliTaz package receipt v2. + +ORIGIN="appdirs" +PACKAGE="python-appdirs" +VERSION="1.4.3" +CATEGORY="python" +SHORT_DESC="Determining appropriate platform-specific dirs, e.g. a user data dir" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="MIT" +WEB_SITE="https://pypi.org/project/$ORIGIN/" +HOST_ARCH="any" +REPOLOGY="python:appdirs" + +TARBALL="$ORIGIN-$VERSION.tar.gz" +WGET_URL="https://pypi.io/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL" + +BUILD_DEPENDS="python python3" +SPLIT="${PACKAGE/python/python3}:3" + +compile_rules() { + python$SET setup.py install --root=$install + + find $install -type f -name '*.pyc' -delete +} + +genpkg_rules() { + copy @std + py="${PACKAGE%%-*}" # python/python3 + DEPENDS="$py" +} diff -r 07b36ab968e3 -r 1ee5239fdfdc python-packaging/receipt --- a/python-packaging/receipt Thu Dec 06 12:00:02 2018 +0200 +++ b/python-packaging/receipt Thu Dec 06 13:30:23 2018 +0200 @@ -2,7 +2,7 @@ ORIGIN="packaging" PACKAGE="python-packaging" -VERSION="17.1" +VERSION="18.0" CATEGORY="python" SHORT_DESC="Core utilities for Python packages" MAINTAINER="al.bobylev@gmail.com" @@ -11,12 +11,17 @@ HOST_ARCH="any" REPOLOGY="python:packaging" +TARBALL="$ORIGIN-$VERSION.tar.gz" +WGET_URL="https://pypi.io/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL" + BUILD_DEPENDS="python python-pyparsing python-six \ python3 python3-pyparsing python3-six" SPLIT="${PACKAGE/python/python3}:3" compile_rules() { - pip$SET install --no-compile --root=$install $ORIGIN==$VERSION + python$SET setup.py install --root=$install + + find $install -type f -name '*.pyc' -delete } genpkg_rules() { diff -r 07b36ab968e3 -r 1ee5239fdfdc python-pyparsing/receipt --- a/python-pyparsing/receipt Thu Dec 06 12:00:02 2018 +0200 +++ b/python-pyparsing/receipt Thu Dec 06 13:30:23 2018 +0200 @@ -2,7 +2,7 @@ ORIGIN="pyparsing" PACKAGE="python-pyparsing" -VERSION="2.2.1" +VERSION="2.3.0" CATEGORY="python" SHORT_DESC="Python parsing module" MAINTAINER="pascal.bellard@slitaz.org" @@ -11,11 +11,16 @@ HOST_ARCH="any" REPOLOGY="python:pyparsing" +TARBALL="$ORIGIN-$VERSION.tar.gz" +WGET_URL="https://pypi.io/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL" + BUILD_DEPENDS="python python3" SPLIT="${PACKAGE/python/python3}:3" compile_rules() { - pip$SET install --no-compile --root=$install $ORIGIN==$VERSION + python$SET setup.py install --root=$install + + find $install -type f -name '*.pyc' -delete } genpkg_rules() { diff -r 07b36ab968e3 -r 1ee5239fdfdc python-setuptools/receipt --- a/python-setuptools/receipt Thu Dec 06 12:00:02 2018 +0200 +++ b/python-setuptools/receipt Thu Dec 06 13:30:23 2018 +0200 @@ -2,7 +2,7 @@ ORIGIN="setuptools" PACKAGE="python-setuptools" -VERSION="40.4.3" +VERSION="40.6.2" CATEGORY="python" SHORT_DESC="Easily download, build, install, upgrade, and uninstall Python packages" MAINTAINER="al.bobylev@gmail.com" @@ -14,14 +14,20 @@ TARBALL="$ORIGIN-$VERSION.tar.gz" WGET_URL="https://github.com/pypa/setuptools/archive/v$VERSION.tar.gz" -BUILD_DEPENDS="python python3" +BUILD_DEPENDS="\ +python python-six python-appdirs python-packaging \ +python3 python3-six python3-appdirs python3-packaging" SPLIT="${PACKAGE/python/python3}:3" compile_rules() { - python$SET bootstrap.py && - python$SET -B setup.py install --root=$install + # Remove post-release tag since we are using stable tags + sed -i '/tag_build = .post/d; /tag_date = 1/d' setup.cfg + + python$SET bootstrap.py + python$SET setup.py install --root=$install find $install -type f -exec chmod g-w '{}' \; # 664->644 + find $install -type f -name '*.pyc' -delete } genpkg_rules() { diff -r 07b36ab968e3 -r 1ee5239fdfdc python-six/receipt --- a/python-six/receipt Thu Dec 06 12:00:02 2018 +0200 +++ b/python-six/receipt Thu Dec 06 13:30:23 2018 +0200 @@ -5,17 +5,22 @@ VERSION="1.11.0" CATEGORY="python" SHORT_DESC="Six is a Python 2 and 3 compatibility library" -MAINTAINER="claudinei@slitaz.org" +MAINTAINER="devel@slitaz.org" LICENSE="MIT" WEB_SITE="https://pypi.org/project/$ORIGIN/" HOST_ARCH="any" REPOLOGY="python:six" +TARBALL="$ORIGIN-$VERSION.tar.gz" +WGET_URL="https://pypi.io/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL" + BUILD_DEPENDS="python python3" SPLIT="${PACKAGE/python/python3}:3" compile_rules() { - pip$SET install --no-compile --root=$install $ORIGIN==$VERSION + python$SET setup.py install --root=$install + + find $install -type f -name '*.pyc' -delete } genpkg_rules() {