diff --git a/programming/language/python/sip/actions.py b/programming/language/python/sip/actions.py
index 02a17fec25..3dd943701d 100644
--- a/programming/language/python/sip/actions.py
+++ b/programming/language/python/sip/actions.py
@@ -9,22 +9,44 @@ from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get
+
WorkDir = "sip-%s" % get.srcVERSION()
+
+py2dir = get.curPYTHON()
py3dir = "python3.4"
def setup():
+ shelltools.system("find . -type f -exec sed -i 's/Python.h/python3.4m\/Python.h/g' {} \;")
+ shelltools.cd("..")
+ shelltools.makedirs("build_python3")
+ shelltools.copytree("./%s" % WorkDir, "build_python3")
+ shelltools.cd(WorkDir)
pythonmodules.run('configure.py \
- -b /usr/bin \
- -d /usr/lib/%s/site-packages/ \
+ -b /usr/local/bin \
+ -d /usr/lib/%s/site-packages \
-e /usr/include/%s/ \
+ CFLAGS+="%s" CXXFLAGS+="%s"' % (py2dir, py2dir, get.CFLAGS(), get.CXXFLAGS()))
+
+ shelltools.cd("../build_python3/%s" % WorkDir)
+ pythonmodules.run('configure.py \
+ -b /usr/local/bin \
+ -d /usr/lib/%s/site-packages/ \
+ -e /usr/include/%sm/ \
CFLAGS="%s" CXXFLAGS="%s"' % (py3dir, py3dir, get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
def build():
autotools.make()
+ shelltools.cd("../build_python3/%s" % WorkDir)
+ autotools.make()
+
def install():
- autotools.rawInstall("DESTDIR=%s -C sipgen" % get.installDIR())
-
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
-
+ pisitools.rename("/usr/local/bin/sip", "sip2")
+ pisitools.dosym("/usr/local/bin/sip2", "/usr/bin/sip2")
+
+ shelltools.cd("../build_python3/%s" % WorkDir)
+ autotools.rawInstall("DESTDIR=%s" % get.installDIR())
+ pisitools.rename("/usr/local/bin/sip", "sip")
+ pisitools.dosym("/usr/local/bin/sip", "/usr/bin/sip")
diff --git a/programming/language/python/sip/pspec.xml b/programming/language/python/sip/pspec.xml
index e5efe7d98a..2ebe0c6fd8 100644
--- a/programming/language/python/sip/pspec.xml
+++ b/programming/language/python/sip/pspec.xml
@@ -12,8 +12,9 @@
SIP is a tool for generating bindings for C and C++ libraries so that they can be used by Python. It takes any C or C++ libraries and converts them into Python extension modules.
python3-devel
+ python-devel
- mirrors://sourceforge/pyqt/sip-4.16.7.tar.gz
+ mirrors://sourceforge/pyqt/sip-4.16.9.tar.gz
no-strip.patch
sip-outoftree.patch
@@ -26,7 +27,7 @@
/usr/local/bin
/usr/sbin
/usr/share/doc
- /usr/share/sip3
+ /usr/share/sip
disable-rpaths.diff
@@ -49,21 +50,33 @@
sip
+
+ python-sip
+
+ /usr/lib/python2.7/
+
+ Python 2.x SIP bindings for C and C++ libraries
+
+ libgcc
+ python
+ sip
+
+
sip-devel
- /usr/include
+ /usr/include/python2.7
+ /usr/include/python3.4m
Development files for sip
- python3-sip
sip
- 2015-06-14
- 4.16.7
+ 2015-09-09
+ 4.16.9
Version Bump.
Ayhan Yalçınsoy
ayhanyalcinsoy@pisilinux.org