python-2.7.18

This commit is contained in:
Rmys
2020-06-03 23:41:32 +03:00
parent be29b14b63
commit b58afc7a67
3 changed files with 28 additions and 36 deletions
+15 -14
View File
@@ -16,19 +16,19 @@ WorkDir = "Python-%s" % get.srcVERSION()
PythonVersion = "2.7"
def setup():
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/libbz2.a" % get.workDIR())
shelltools.cd("..")
shelltools.system("echo -e '\033[0;36mBuilding OpenSSL\033[0m' ")
#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/libbz2.a" % get.workDIR())
#shelltools.cd("..")
#shelltools.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.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.system("echo -e '\033[0;36mBuilding Python\033[0m' ")
@@ -45,8 +45,9 @@ def setup():
"_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("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())
autotools.autoreconf("-vif")
+9 -18
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>python</Name>
@@ -8,16 +8,15 @@
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<PartOf>programming.language</PartOf>
<License>PSF-2.2</License>
<IsA>app:console</IsA>
<Summary>An interpreted, interactive, object-orientated programming language</Summary>
<Description>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.</Description>
<Archive sha1sum="678d4cf483a1c92efd347ee8e1e79326dc82810b" type="tarxz">https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz</Archive>
<Archive sha1sum="bf7badf7e248e0ecf465d33c2f5aeec774209227" type="targz" target="Python-2.7.18">https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz</Archive>
<Archive sha1sum="b213a293f2127ec3e323fb3cfc0c9807664fd997" type="targz" target="Python-2.7.18">https://www.openssl.org/source/openssl-1.1.1g.tar.gz</Archive>
<!-- <Archive sha1sum="bf7badf7e248e0ecf465d33c2f5aeec774209227" type="targz" target="Python-2.7.18">https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz</Archive>
<Archive sha1sum="b213a293f2127ec3e323fb3cfc0c9807664fd997" type="targz" target="Python-2.7.18">https://www.openssl.org/source/openssl-1.1.1g.tar.gz</Archive>-->
<BuildDependencies>
<!--<Dependency>bzip2</Dependency> -->
<Dependency>bzip2</Dependency>
<!--<Dependency>tcl-devel</Dependency>-->
<Dependency>gdbm-devel</Dependency>
<Dependency>zlib-devel</Dependency>
@@ -26,7 +25,7 @@
<Dependency>libffi-devel</Dependency>
<Dependency>sqlite-devel</Dependency>
<Dependency>ncurses-devel</Dependency>
<!--<Dependency>openssl-devel</Dependency>-->
<Dependency>openssl-devel</Dependency>
<Dependency>readline-devel</Dependency>
<!-- Bootstrap -->
<!-- Comment these deps when bootstrapping -->
@@ -41,13 +40,12 @@
<Patch level="1">disable-egginfo.patch</Patch>
<!-- some Turkish locale fixes, usually caused by tolower() -->
<Patch level="1">trfix_emaillib.patch</Patch>
<Patch level="1">allowZip64.patch</Patch>
<Patch level="1">allowZip64.patch</Patch>
</Patches>
</Source>
<Package>
<Name>python</Name>
<Summary>An interpreted, interactive, object-orientated programming language</Summary>
<RuntimeDependencies>
<Dependency>gdbm</Dependency>
<Dependency>zlib</Dependency>
@@ -56,7 +54,7 @@
<Dependency>libffi</Dependency>
<Dependency>sqlite</Dependency>
<Dependency>ncurses</Dependency>
<!--<Dependency>openssl</Dependency>-->
<Dependency>openssl</Dependency>
<Dependency>readline</Dependency>
</RuntimeDependencies>
<Files>
@@ -138,16 +136,9 @@
</Package>-->
<History>
<Update release="7">
<Date>2020-04-24</Date>
<Update release="6">
<Date>2020-06-03</Date>-
<Version>2.7.18</Version>
<Comment>Patch version bump</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="6">
<Date>2019-10-25</Date>-
<Version>2.7.17</Version>
<Comment>Ver bump</Comment>
<Name>Idris Kalp</Name>
<Email>idriskalp@gmail.com</Email>
+4 -4
View File
@@ -10,10 +10,9 @@
<Package>
<Name>python-devel</Name>
<Summary xml:lang="tr">python için geliştirme dosyaları</Summary>
<Description xml:lang="tr">python-devel, python için geliştime dosyaları içerir.</Description>
</Package>
<!--<Package>
<Package>
<Name>python-tk</Name>
<Summary xml:lang="tr">Tk için Python modülleri</Summary>
</Package>
@@ -21,5 +20,6 @@
<Package>
<Name>idle</Name>
<Summary xml:lang="tr">Python için Tümleşik Geliştirme Ortamı</Summary>
</Package>-->
</PISI>
</Package>
</PISI>