diff --git a/programming/language/python/sip/actions.py b/programming/language/python/sip/actions.py
index 4ef8232360..b8019f4cb9 100644
--- a/programming/language/python/sip/actions.py
+++ b/programming/language/python/sip/actions.py
@@ -15,8 +15,7 @@ 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' {} \;")
+def setup():
shelltools.cd("..")
shelltools.makedirs("build_python3")
shelltools.copytree("./%s" % WorkDir, "build_python3")
@@ -24,6 +23,7 @@ def setup():
pythonmodules.run('configure.py CFLAGS+="%s" CXXFLAGS+="%s"' % (get.CFLAGS(), get.CXXFLAGS()))
shelltools.cd("../build_python3/%s" % WorkDir)
+ shelltools.system("find . -type f -exec sed -i 's/Python.h/python3.4m\/Python.h/g' {} \;")
pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s"' % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
diff --git a/programming/language/python/sip/pspec.xml b/programming/language/python/sip/pspec.xml
index 774fd4d3f9..d039a42550 100644
--- a/programming/language/python/sip/pspec.xml
+++ b/programming/language/python/sip/pspec.xml
@@ -13,73 +13,36 @@
mirrors://sourceforge/pyqt/sip-4.16.9.tar.gz
qt5-base-devel
+ python3-devel
+ python-devel
-
-
-
- sip
+ python-sip
+ Python 2.x SIP bindings for C and C++ libraries
libgcc
+ python
- /usr/bin
- /usr/share/licenses/sip/LICENSE
-
-
-
-
+ /usr/bin/py2sip
+ /usr/lib/python2.7/
+ /usr/include/python2.7
+
-
- python3-devel
-
python3-sip
-
- /usr/lib/python3*
- /usr/share/licenses/python3-sip/LICENSE
-
Python 3.x SIP bindings for C and C++ libraries
libgcc
python3
- sip
-
-
-
- python-sip
- Python 2.x SIP bindings for C and C++ libraries
-
- python-devel
-
-
- libgcc
- python
- sip
-
-
- /usr/lib/python2.7/
- /usr/share/licenses/python2-sip/LICENSE
-
- Python 2.x SIP bindings for C and C++ libraries
-
-
-
- sip-devel
- Development files for sip
-
- sip
-
-
- /usr/include/python2.7
+
+ /usr/bin/sip
+ /usr/lib/python3*
/usr/include/python3.4m
+ /usr/share/licenses/python3-sip/LICENSE