
python
The Python programming language
receipt
stuff/applications/python-idle.desktop
stuff/applications/python.desktop
stuff/patches/13a39142c047.diff
stuff/patches/series
stuff/python.png
# SliTaz package receipt v2.
PACKAGE="python"
VERSION="2.7.15"
CATEGORY="development"
SHORT_DESC="The Python programming language"
MAINTAINER="[email protected]"
LICENSE="PSL"
WEB_SITE="https://www.python.org/"
LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/python2.html"
REPOLOGY="python2"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tar.xz"
TARBALL_SHA1="f99348a095ec4a6411c84c0d15343d11920c9724"
BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite3-dev zlib-dev \
ncurses-dev tcl-dev tk-dev db-dev gdbm-dev libffi-dev expat-dev"
SPLIT="$PACKAGE-dev $PACKAGE-idle $PACKAGE-tcltk $PACKAGE"
COOKOPTS="!menus !zip"
compile_rules() {
# Temporary workaround for FS#22322
# See http://bugs.python.org/issue10835 for upstream report
sed -i.orig "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
# Enable built-in SQLite3 module to load extensions (fix FS#22122)
sed -i.orig "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
./configure \
--prefix=/usr \
--enable-shared \
--with-system-expat \
--with-system-ffi \
--without-ensurepip \
--enable-unicode=ucs4 \
$CONFIGURE_ARGS &&
make &&
make DESTDIR=$install install &&
chmod -v 755 $install/usr/lib/libpython2.7.so.1.0
find $install -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete
}
genpkg_rules() {
case $PACKAGE in
*-dev)
copy @dev test/ distutils/command/*.exe ensurepip/
find $fs -type f -name pyconfig.h -delete # move to python package
DEPENDS="python" # skip python-idle and python-tcltk
;;
*-idle)
copy idle idlelib/ python-idle.desktop
CAT="development|GUI IDE using TK Toolkit"
DEPENDS="python-tcltk tcl tk"
;;
*-tcltk)
copy _tkinter.so lib-tk/ @rm
CAT="development|Tcl/Tk files"
DEPENDS="python tcl tk libx11"
;;
python)
# Now pyconfig.h is required for Mercurial.
copy @std @rm pyconfig.h
DEPENDS="python-setuptools python-pip \
libbzip2 expat libgdbm libffi libsqlite3 ncurses \
ncurses-libpanel openssl readline zlib"
;;
esac
}