diff --git a/system/base/python3/actions.py b/system/base/python3/actions.py
index 0ecf005d..36c42ec9 100644
--- a/system/base/python3/actions.py
+++ b/system/base/python3/actions.py
@@ -9,6 +9,13 @@ from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
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("..")
+
pisitools.flags.add("-fwrapv")
pisitools.dosed("Lib/cgi.py","^#.* /usr/local/bin/python","#!/usr/bin/python")
@@ -20,7 +27,10 @@ def setup():
#shelltools.unlinkDir("Modules/_ctypes/libffi_msvc")
shelltools.unlinkDir("Modules/_ctypes/libffi_osx")
#shelltools.unlinkDir("Modules/_decimal/libmpdec")
-
+
+ shelltools.export("CFLAGS", "-I%s/temp/include -O3" %get.workDIR())
+ shelltools.export("LDFLAGS", "-L%s/temp/lib -lbz2 -lpthread -ldl" %get.workDIR())
+
autotools.rawConfigure("\
--prefix=/usr \
--enable-shared \
diff --git a/system/base/python3/pspec.xml b/system/base/python3/pspec.xml
index b7210985..b98d505a 100644
--- a/system/base/python3/pspec.xml
+++ b/system/base/python3/pspec.xml
@@ -12,7 +12,8 @@
programming.language
Next generation of the python high-level scripting language
Next generation of the python high-level scripting language
- https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz
+ https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tar.xz
+ https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
bzip2
@@ -123,6 +124,13 @@
+
+ 2019-12-23
+ 3.8.1
+ Version bump
+ Idris Kalp
+ idriskalp@gmail.com
+
2019-12-10
3.8.0