diff options
author | Juergen Daubert <jue@jue.li> | 2020-05-24 13:53:17 +0200 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2020-05-24 13:53:17 +0200 |
commit | 354fa2d0ce49601d8c604a288b1193f283157595 (patch) | |
tree | 3d248c697e9787e32a014bb42c366a1868ffbff7 /python/Pkgfile | |
parent | 1fb1f33a9a8300fb80f9f6dc629a47a8c53ae3c2 (diff) | |
download | opt-354fa2d0ce49601d8c604a288b1193f283157595.tar.gz opt-354fa2d0ce49601d8c604a288b1193f283157595.tar.xz |
[notify] python: removed 2to3, now provided by python3
Diffstat (limited to 'python/Pkgfile')
-rw-r--r-- | python/Pkgfile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/python/Pkgfile b/python/Pkgfile index a3cd83210..a268b3f88 100644 --- a/python/Pkgfile +++ b/python/Pkgfile @@ -5,16 +5,20 @@ name=python version=2.7.18 -release=1 +release=2 source=(http://www.python.org/ftp/$name/${version::6}/Python-$version.tar.xz \ pyconfig.h) build () { cd Python-$version - # set OPT to the python default without -O3 - # our CFLAGS are used as well - OPT="-Wall -Wstrict-prototypes -fwrapv" \ + # remove 2to3, we use the one from python3 + rm -r Lib/lib2to3 + + # remove tests + rm -r Lib/{bsddb,ctypes,email,lib-tk,sqlite3,unittest}/test + rm -r Lib/{{distutils,json}/tests,idlelib/idle_test,test} + ./configure --prefix=/usr \ --enable-shared \ --with-threads \ @@ -31,9 +35,7 @@ build () { ln -s python2.7 $PKG/usr/include/python ln -s /usr/lib/libpython2.7.so $PKG/usr/lib/python2.7/config/libpython2.7.so - rm -r $PKG/usr/lib/python/{bsddb,ctypes,email,lib-tk,sqlite3,unittest}/test - rm -r $PKG/usr/lib/python/{distutils,json,lib2to3}/tests - rm -r $PKG/usr/lib/python/test + rm $PKG/usr/bin/2to3 rm $PKG/usr/lib/python/{distutils,site-packages}/README rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt} rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes |