From d2d0d62b004f41a036650b28fd554c8d7a6d151e Mon Sep 17 00:00:00 2001 From: idriskalp Date: Mon, 23 Dec 2019 18:35:50 +0300 Subject: [PATCH] python rebuild --- system/base/python/actions.py | 15 +++++---------- system/base/python/pspec.xml | 1 - 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/system/base/python/actions.py b/system/base/python/actions.py index c4089504..fe07cfc6 100644 --- a/system/base/python/actions.py +++ b/system/base/python/actions.py @@ -16,19 +16,13 @@ WorkDir = "Python-%s" % get.srcVERSION() PythonVersion = "2.7" def setup(): - shelltools.system("echo -e '\033[0;36mBuilding OpenSSL\033[0m' ") - shelltools.cd("openssl-1.1.1d") - shelltools.system("./Configure --prefix=%s/temp --openssldir=%s/temp/etc/ssl --libdir=lib no-shared linux-x86_64 -Wa,--noexecstack" %(get.workDIR(), get.workDIR())) - autotools.make() - autotools.make("install") - shelltools.cd("..") shelltools.system("echo -e '\033[0;36mBuilding Bzip2\033[0m' ") + 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" % get.workDIR()) + shelltools.system("cp libbz2.a %s/temp/lib/libbz2.a" % get.workDIR()) shelltools.cd("..") - pisitools.cflags.add("-fwrapv") # no rpath @@ -41,9 +35,10 @@ def setup(): for dir in ["expat","zlib","_ctypes/libffi_arm_wince","_ctypes/libffi_msvc", "_ctypes/libffi_osx","_ctypes/libffi","_ctypes/darwin"]: 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("LDFLAGS", "-L%s/temp/lib -lbz2 -lpthread -ldl" %get.workDIR()) + autotools.autoreconf("-vif") # disable bsddb diff --git a/system/base/python/pspec.xml b/system/base/python/pspec.xml index 163dc956..8a33c314 100755 --- a/system/base/python/pspec.xml +++ b/system/base/python/pspec.xml @@ -13,7 +13,6 @@ An interpreted, interactive, object-orientated programming language Python is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries, and can be learned in a few days. https://www.python.org/ftp/python/2.7.17/Python-2.7.17.tar.xz - ftp://ftp.openssl.org/source/openssl-1.1.1d.tar.gz https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz bzip2