python rebuild

This commit is contained in:
Idris Kalp
2021-03-30 21:03:10 +03:00
parent 78b93abfd8
commit 00a2090323
2 changed files with 26 additions and 14 deletions
+15 -12
View File
@@ -8,7 +8,6 @@ from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
import os
WorkDir = "Python-%s" % get.srcVERSION()
@@ -17,20 +16,20 @@ PythonVersion = "2.7"
def setup():
#shelltools.system("echo -e '\033[0;36mBuilding Bzip2\033[0m' ")
#shelltools.makedirs("%s/temp/lib" %get.workDIR())
shelltools.makedirs("%s/temp/lib" %get.workDIR())
#shelltools.cd("bzip2-1.0.8")
#autotools.make('CC=%s AR=%s RANLIB=%s CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC" libbz2.a' % (get.CC(), get.AR(), get.RANLIB(), get.CFLAGS()))
#shelltools.system("cp libbz2.a %s/temp/lib/libbz2.a" % get.workDIR())
#shelltools.cd("..")
#shelltools.system("echo -e '\033[0;36mBuilding OpenSSL\033[0m' ")
os.system("echo -e '\033[0;36mBuilding OpenSSL\033[0m' ")
#shelltools.cd("openssl-1.1.1g")
#shelltools.system("./Configure --prefix=%s/temp --openssldir=%s/openssl/etc/ssl --libdir=lib no-shared enable-ec_nistp_64_gcc_128 linux-x86_64 -Wa,--noexecstack" %(get.workDIR(), get.workDIR()))
#autotools.make()
#autotools.make("install")
#shelltools.cd("..")
shelltools.cd("openssl-1.1.1k")
shelltools.system("./Configure --prefix=%s/temp --openssldir=%s/openssl/etc/ssl --libdir=lib no-shared enable-ec_nistp_64_gcc_128 linux-x86_64 -Wa,--noexecstack" %(get.workDIR(), get.workDIR()))
autotools.make()
autotools.make("install")
shelltools.cd("..")
shelltools.system("echo -e '\033[0;36mBuilding Python\033[0m' ")
os.system("echo -e '\033[0;36mBuilding Python\033[0m' ")
pisitools.cflags.add("-fwrapv")
@@ -46,8 +45,11 @@ def setup():
shelltools.unlinkDir("Modules/%s" % dir)
#shelltools.export("CFLAGS", "-I%s/temp/include -O3" %get.workDIR())
#shelltools.export("LDFLAGS", "-L%s/temp/lib -lssl -lcrypto -lbz2 -lpthread -ldl" %get.workDIR())
#shelltools.export("PKG_CONFIG_PATH", "-$PKG_CONFIG_PATH:%s/temp/lib/pkgconfig" %get.workDIR())
#shelltools.export("LDFLAGS", "-L%s/temp/lib -lssl -lcrypto -lpthread -ldl" %get.workDIR())
shelltools.export("PKG_CONFIG_PATH", "$PKG_CONFIG_PATH:%s/temp/lib/pkgconfig" %get.workDIR())
pisitools.cflags.add("-I%s/temp/include -O3" %get.workDIR())
pisitools.ldflags.add("-L%s/temp/lib -lssl -lcrypto -lpthread -ldl" %get.workDIR())
autotools.autoreconf("-vif")
@@ -66,7 +68,8 @@ def setup():
--with-system-expat \
--with-system-ffi \
--with-dbmliborder=gdbm \
")
PKG_CONFIG_PATH=%s/temp/lib/pkgconfig \
" %get.workDIR())
def build():
autotools.make()