# python2-core/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. After building this package, you may need to log-out and in again before building others. #--------------------------------------------------------------------- [buildtimes] 00.03 hours (or 001.65 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.04 hours (or 002.13 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM 00.06 hours (or 003.43 minutes) - HP EliteBook 8560w 32GB RAM 00.06 hours (or 003.65 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.07 hours (or 003.97 minutes) - HP Pavilion dv8 8GB RAM 00.07 hours (or 003.97 minutes) - OpenVZ 1x4 CPU 4GB RAM 00.20 hours (or 011.85 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] license = See "license*.txt" in installed tree licfile = LICENSE proddir = $PRODTREE/python2 purge = yes shareddir = yes setpaths = $PRODTREE/python2, libffi, zlib, openssl tmpsize = 129M #--------------------------------------------------------------------- [depends] db libffi gdbm grep ncurses openssl readline sqlite3 #--------------------------------------------------------------------- [configure] MANBASE=$PKGDIR_PROD/man mkdir -p $MANBASE export FIXGCCOPTR=yes if [ -d $PRODTREE/tcltk/lib ]; then . srcpkgpaths tcltk ; fi if [ -d $PRODTREE/xorg/lib ]; then . srcpkgpaths xorg ; fi if [ "@$LACARCH" == "@glibc32" ]; then treetextsub --pattern=i686 --newtext=i586 --keeptimes fi sed -e "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" \ -i setup.py bash ./configure \ --prefix=$PKGDIR_PROD \ --build=$LACARCHBUILD \ --host=$LACARCHHOST \ --disable-ipv6 \ --enable-shared \ --mandir=$MANBASE \ --with-system-ffi sed -e "s|^CC=.*|& -Wl,--rpath,$PKGDIR_PROD/lib|" \ -e "s|^CXX=.*|& -Wl,--rpath,$PKGDIR_PROD/lib|" \ -i Makefile #--------------------------------------------------------------------- [build] export FIXGCCOPTR=yes if [ -d $PRODTREE/tcltk/lib ]; then . srcpkgpaths tcltk ; fi if [ -d $PRODTREE/xorg/lib ]; then . srcpkgpaths xorg ; fi smpmake echo smpmake done smpmake install #--------------------------------------------------------------------- [postbuild] BINDIR=$PKGDIR_PROD/bin DOCDIR=$PKGDIR_PROD/doc LIBDIR=$PKGDIR_PROD/lib mkdir -p $DOCDIR $LIBDIR rm -fr $LIBDIR/python2.*/config/libpython2.*.a \ $LIBDIR/python2.*/test python -m ensurepip --upgrade PATH=$BINDIR:$PATH hash pip2 for x in pip MarkupSafe Mako six do pip2 install --no-index --upgrade --find-links /src/piprepo2 $x done pip2 --version #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = http://packages.debian.org/unstable/source/python2.7 url_home = http://www.python.org/ url_lfs = http://www.linuxfromscratch.org/blfs/view/stable/\ general/prog.html#python url_tarball = http://www.python.org/ftp/python/2.7.18/\ Python-2.7.18.tar.xz #--------------------------------------------------------------------- [history] 170504 Updated from 2.7.11 to 2.7.13 170917 Updated from 2.7.13 to 2.7.14 180331 Fixed FTBFS against libressl 2.7.1 180430 Updated from 2.7.14 to 2.7.15 180629 Added an Alpine patch 190830 Updated to 2.7.16 210125 Updated to 2.7.18