Merge pull request #6285 from Rmys/master
sip:rebuild py2 py3 pyqt5-sip First release
This commit is contained in:
@@ -10,15 +10,29 @@ from pisi.actionsapi import pisitools
|
|||||||
from pisi.actionsapi import pythonmodules
|
from pisi.actionsapi import pythonmodules
|
||||||
from pisi.actionsapi import get
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
WorkDir = "sip-%s" % get.srcVERSION()
|
#WorkDir = "sip-%s" % get.srcVERSION()
|
||||||
|
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
|
shelltools.cd("%s" % get.workDIR())
|
||||||
|
shelltools.cd("sip-%s" % get.srcVERSION())
|
||||||
|
shelltools.copytree("../sip-%s" % (get.srcVERSION().replace("_", "~")), "../sip-%s-pyqt5" % get.srcVERSION())
|
||||||
|
|
||||||
pythonmodules.run('configure.py CFLAGS+="%s" CXXFLAGS+="%s"' % (get.CFLAGS(), get.CXXFLAGS()))
|
pythonmodules.run('configure.py CFLAGS+="%s" CXXFLAGS+="%s"' % (get.CFLAGS(), get.CXXFLAGS()))
|
||||||
|
|
||||||
|
shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION())
|
||||||
|
pythonmodules.run('configure.py CFLAGS+="%s" CXXFLAGS+="%s" --sip-module PyQt5.sip --no-tools' % (get.CFLAGS(), get.CXXFLAGS()))
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
autotools.make()
|
autotools.make()
|
||||||
|
|
||||||
|
shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION())
|
||||||
|
autotools.make()
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|
||||||
|
shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION())
|
||||||
|
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|
||||||
pisitools.rename("/usr/bin/sip", "py2sip")
|
pisitools.rename("/usr/bin/sip", "py2sip")
|
||||||
|
|||||||
@@ -32,8 +32,26 @@
|
|||||||
<Path fileType="header">/usr/include</Path>
|
<Path fileType="header">/usr/include</Path>
|
||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>python-pyqt5-sip</Name>
|
||||||
|
<Summary>Python 2.x pyqt5 SIP bindings for C and C++ libraries</Summary>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>libgcc</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="library">/usr/lib/python2.7/site-packages/PyQt5*</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="9">
|
||||||
|
<Date>2019-01-14</Date>
|
||||||
|
<Version>4.19.12</Version>
|
||||||
|
<Comment>Rebuild pyqt5 sip.</Comment>
|
||||||
|
<Name>Mustafa Cinasal</Name>
|
||||||
|
<Email>muscnsl@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="8">
|
<Update release="8">
|
||||||
<Date>2018-08-06</Date>
|
<Date>2018-08-06</Date>
|
||||||
<Version>4.19.12</Version>
|
<Version>4.19.12</Version>
|
||||||
|
|||||||
@@ -10,15 +10,29 @@ from pisi.actionsapi import pisitools
|
|||||||
from pisi.actionsapi import pythonmodules
|
from pisi.actionsapi import pythonmodules
|
||||||
from pisi.actionsapi import get
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
WorkDir = "sip-%s" % get.srcVERSION()
|
#WorkDir = "sip-%s" % get.srcVERSION()
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
|
shelltools.cd("%s" % get.workDIR())
|
||||||
|
shelltools.cd("sip-%s" % get.srcVERSION())
|
||||||
|
shelltools.copytree("../sip-%s" % (get.srcVERSION().replace("_", "~")), "../sip-%s-pyqt5" % get.srcVERSION())
|
||||||
|
|
||||||
shelltools.system("find . -type f -exec sed -i 's/Python.h/python3.6m\/Python.h/g' {} \;")
|
shelltools.system("find . -type f -exec sed -i 's/Python.h/python3.6m\/Python.h/g' {} \;")
|
||||||
|
|
||||||
pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s"' % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
|
pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s"' % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
|
||||||
|
|
||||||
|
shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION())
|
||||||
|
pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s" --sip-module PyQt5.sip --no-tools' % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
|
||||||
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
autotools.make()
|
autotools.make()
|
||||||
|
|
||||||
|
shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION())
|
||||||
|
autotools.make()
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|
||||||
|
shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION())
|
||||||
|
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|||||||
@@ -33,8 +33,26 @@
|
|||||||
<Path fileType="data">/usr/share/licenses</Path>
|
<Path fileType="data">/usr/share/licenses</Path>
|
||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>python3-pyqt5-sip</Name>
|
||||||
|
<Summary>Python 3.x pyqt5 SIP bindings for C and C++ libraries</Summary>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>libgcc</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="library">/usr/lib/python3.6/site-packages/PyQt5*</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="9">
|
||||||
|
<Date>2019-01-14</Date>
|
||||||
|
<Version>4.19.12</Version>
|
||||||
|
<Comment>Rebuild pyqt5 sip.</Comment>
|
||||||
|
<Name>Mustafa Cinasal</Name>
|
||||||
|
<Email>muscnsl@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="8">
|
<Update release="8">
|
||||||
<Date>2018-08-06</Date>
|
<Date>2018-08-06</Date>
|
||||||
<Version>4.19.12</Version>
|
<Version>4.19.12</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user