# HG changeset patch # User Hans-G?nter Theisgen # Date 1656687371 -3600 # Node ID 401ca84be53adb954ccf8aa94b5f427e5d908dfb # Parent c1d6498c42ddc5f8cc624c4751a9e75a8029765b updated python, python-dev and python-idle (2.7.17 -> 2.7.18) diff -r c1d6498c42dd -r 401ca84be53a python-dev/receipt --- a/python-dev/receipt Fri Jul 01 15:27:05 2022 +0100 +++ b/python-dev/receipt Fri Jul 01 15:56:11 2022 +0100 @@ -1,14 +1,13 @@ # SliTaz package receipt. PACKAGE="python-dev" -VERSION="2.7.17" +VERSION="2.7.18" CATEGORY="development" SHORT_DESC="The Python programming language - development files." MAINTAINER="pankso@slitaz.org" LICENSE="PSL" WEB_SITE="https://www.python.org/" -SOURCE="Python" DEPENDS="python" WANTED="python" @@ -19,11 +18,11 @@ { mkdir -p $fs/usr/bin - cp -a $install/usr/include $fs/usr + cook_copy_folders include cp -a $install/usr/bin/*-config $fs/usr/bin chmod 755 $fs/usr/bin/*-config # in python package now python_version=${VERSION:0:3} - rm $fs/usr/include/${WANTED}$python_version/pyconfig.h + rm $fs/usr/include/${WANTED}$python_version/pyconfig.h } diff -r c1d6498c42dd -r 401ca84be53a python-idle/receipt --- a/python-idle/receipt Fri Jul 01 15:27:05 2022 +0100 +++ b/python-idle/receipt Fri Jul 01 15:56:11 2022 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="python-idle" -VERSION="2.7.17" +VERSION="2.7.18" CATEGORY="development" SHORT_DESC="Python GUI IDE using TK Toolkit." MAINTAINER="pankso@slitaz.org" @@ -16,9 +16,11 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { + python_version=${VERSION%.*} mkdir -p $fs/usr/bin - mkdir -p $fs/usr/lib/python2.7 + mkdir -p $fs/usr/lib/python$python_version - cp -a $install/usr/bin/idle $fs/usr/bin - cp -a $install/usr/lib/python2.7/idlelib $fs/usr/lib/python2.7 + cp -a $install/usr/bin/idle $fs/usr/bin + cp -a $install/usr/lib/python$python_version/idlelib \ + $fs/usr/lib/python$python_version } diff -r c1d6498c42dd -r 401ca84be53a python/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/description.txt Fri Jul 01 15:56:11 2022 +0100 @@ -0,0 +1,5 @@ +Python is a programming language that lets you work more quickly and +integrate your systems more effectively. + +You can learn to use Python and see almost immediate gains in productivity +and lower maintenance costs. diff -r c1d6498c42dd -r 401ca84be53a python/receipt --- a/python/receipt Fri Jul 01 15:27:05 2022 +0100 +++ b/python/receipt Fri Jul 01 15:56:11 2022 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="python" -VERSION="2.7.17" +VERSION="2.7.18" CATEGORY="development" SHORT_DESC="The Python programming language." MAINTAINER="pankso@slitaz.org" @@ -19,28 +19,28 @@ HOST_ARCH="i486 arm" +# @maintainer: Please update also: python-idle + current_version() { wget -O - https://www.python.org/ftp/python/ 2>/dev/null | \ sed "/=\"${VERSION%.*}/!d;s|.*\">\\(.*\\)/<.*|\\1|" | sort -Vr | sed q } -# @maintainer: Please update also: python-idle - # Rules to configure and make the package. compile_rules() { # Temporary workaround for FS#22322 # See http://bugs.python.org/issue10835 for upstream report - sed -i "/progname =/s/python/python${_pybasever}/" \ - Python/pythonrun.c +# sed -i "/progname =/s/python/python${_pybasever}/" \ +# Python/pythonrun.c # Enable built-in SQLite3 module to load extensions (fix FS#22122) sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" \ setup.py case "$ARCH" in - arm*) + (arm*) # First pass for build host tools unset CFLAGS CXXFLAGS cp -f $CONFIG_SITE . @@ -82,25 +82,27 @@ CROSS_COMPILE_TARGET=yes \ HOSTARCH=${HOST_SYSTEM} \ BUILDARCH=${BUILD_SYSTEM} || exit 1 - make DESTDIR=$DESTDIR install || exit 1 ;; - i?86) + make DESTDIR=$DESTDIR install || exit 1 + ;; + (i?86) ./configure \ --enable-shared \ --build=${HOST_SYSTEM} \ --host=${HOST_SYSTEM} && make && - make DESTDIR=$DESTDIR install ;; + make DESTDIR=$DESTDIR install + ;; esac } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - python_version=${VERSION:0:3} + python_version=${VERSION%.*} mkdir -p $fs/usr/include/${PACKAGE}$python_version - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/lib $fs/usr + cook_copy_folders bin + cook_copy_folders lib # needed for mercurial to work now cp -a $install/usr/include/${PACKAGE}$python_version/pyconfig.h \ @@ -109,5 +111,5 @@ # Split IDLE with TK dep rm -f $fs/usr/bin/idle - rm -rf $fs/usr/lib/python2.7/idlelib + rm -rf $fs/usr/lib/python$python_version/idlelib }