python3 3.8.0 and move to core

This commit is contained in:
IdrisKalp
2019-12-10 04:35:28 +03:00
parent 3bf24f28de
commit c42a5c2491
6 changed files with 305 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup():
pisitools.flags.add("-fwrapv")
pisitools.dosed("Lib/cgi.py","^#.* /usr/local/bin/python","#!/usr/bin/python")
shelltools.unlinkDir("Modules/expat")
#shelltools.unlinkDir("Modules/zlib")
shelltools.unlinkDir("Modules/_ctypes/darwin")
#shelltools.unlinkDir("Modules/_ctypes/libffi")
#shelltools.unlinkDir("Modules/_ctypes/libffi_msvc")
shelltools.unlinkDir("Modules/_ctypes/libffi_osx")
#shelltools.unlinkDir("Modules/_decimal/libmpdec")
autotools.rawConfigure("\
--prefix=/usr \
--enable-shared \
--with-threads \
--with-computed-gotos \
--enable-ipv6 \
--with-system-expat \
--with-dbmliborder=gdbm:ndbm \
--with-system-ffi \
--with-system-libmpdec \
--enable-loadable-sqlite-extensions \
--without-ensurepip")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.remove("/usr/bin/2to3")
pisitools.dodoc("LICENSE", "README.*")
pisitools.removeDir("/usr/lib/python3.8/idlelib")
pisitools.removeDir("/usr/lib/python3.8/tkinter")
pisitools.removeDir("/usr/lib/python3.8/turtledemo")
pisitools.remove("/usr/bin/idle3*")