
python3
The Python 3 programming language
receipt
# SliTaz package receipt v2.
PACKAGE="python3"
VERSION="3.7.2"
CATEGORY="development"
SHORT_DESC="The Python 3 programming language"
MAINTAINER="[email protected]"
LICENSE="GPL"
WEB_SITE="https://www.python.org/download/releases/"
LFS="http://www.linuxfromscratch.org/lfs/view/development/chapter06/Python.html"
TARBALL="Python-$VERSION.tar.xz"
WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL"
TARBALL_SHA1="c3dc6928516bcb934cf4740461044c79c7c35494"
BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite3-dev zlib-dev tk-dev \
ncurses-dev xz-dev bzip2-dev expat-dev libffi-dev"
SPLIT="$PACKAGE-idle $PACKAGE-tcltk $PACKAGE-ensurepip $PACKAGE $PACKAGE-dev"
COPY_idle="idle3 idle${VERSION%.*} idlelib/"
COPY_tcltk="_tkinter.*.so tkinter/"
COPY_ensurepip="ensurepip/"
COPY_std="@std @rm pyconfig.h"
CAT_idle="development|GUI IDE using TK Toolkit"
CAT_tcltk="development|Tcl/Tk files"
CAT_ensurepip="development|ensurepip"
DEPENDS_idle="$PACKAGE"
DEPENDS_tcltk="$PACKAGE tcl tk"
DEPENDS_ensurepip="$PACKAGE"
DEPENDS_std="expat libbzip2 libffi libgdbm liblzma libsqlite3 ncurses \
ncurses-libpanel openssl readline util-linux-uuid zlib python3-setuptools \
python3-pip"
DEPENDS_dev="$PACKAGE"
TAGS_std="LFS"
COOKOPTS="!zip"
compile_rules() {
mkdir -p $install/usr/lib/pkgconfig
./configure \
--enable-shared \
--with-system-expat \
--with-system-ffi \
--without-ensurepip \
$CONFIGURE_ARGS &&
make &&
make DESTDIR=$install install || return 1
chmod 755 $install/usr/lib/libpython${VERSION%.*}m.so
chmod 755 $install/usr/lib/libpython${VERSION%%.*}.so
find $install -type f -name '*.pyc' -delete
}
PROVIDE_std="py3k"
PROVIDE_dev="py3k-dev"