Beispiel #1
0
def install():
   pythonmodules.run("install.py -z \
                                  -b %(bindir)s \
                                  -i %(installdir)s \
                                  -d %(site-packages)s \
                                  -c" % conf, pyVer = "3")
   pythonmodules.fixCompiledPy()  
Beispiel #2
0
def setup():
    pisitools.dosed("specs/linux-g++", "@@PYTHON_VER@@", get.curPYTHON())
    pythonmodules.run('configure.py \
                       -b /usr/bin \
                       -d /usr/lib/%s/site-packages \
                       -e /usr/include/%s \
                       CFLAGS+="%s" CXXFLAGS+="%s"' % (get.curPYTHON(), get.curPYTHON(), get.CFLAGS(), get.CXXFLAGS()))
Beispiel #3
0
def setup():
    pisitools.dosed("configure.py", "  check_license()", "# check_license()")

    pythonmodules.run("configure.py \
                       -d /usr/lib/%s/site-packages \
                       -b /usr/bin \
                       -v /usr/share/sip" % get.curPYTHON())
Beispiel #4
0
def install():
    pisitools.dodoc("HISTORY", "LICENSE.GPL", "THANKS", "eric/README*")
    bdir = "/usr/bin"
    idir = get.installDIR()
    ddir = "/usr/lib/%s/site-packages" % get.curPYTHON()
    pythonmodules.run("install.py -b %s -i %s -d %s -c" % (bdir, idir, ddir))
    pythonmodules.fixCompiledPy()
Beispiel #5
0
def install():
    pythonmodules.run("install.py -p %s/usr/" % get.installDIR())

    pisitools.dosed("%s/usr/bin/rpcalc" % get.installDIR(),
                    "/var/pisi/%s/install" % get.srcTAG())
    pisitools.dosed("%s/usr/lib/rpcalc/rpcalc.py" % get.installDIR(),
                    "/var/pisi/%s/install" % get.srcTAG())
Beispiel #6
0
def setup():
  
    shelltools.copytree("%s/PyQt-gpl-5.5" % get.workDIR(), "%s/Py2Qt-gpl-5.5" % get.workDIR())
    pythonmodules.run("configure.py  --confirm-license \
                                     --assume-shared \
                                     --no-timestamp \
                                     --qsci-api \
                                     --enable=QtXmlPatterns \
                                     --enable=QtSvg \
                                     --enable=QtDBus \
                                     --enable=QtQml \
                                     --enable=QtQuick \
                                     --enable=QtQuickWidgets \
                                     --enable=QtOpenGL \
                                     --enable=QtTest \
                                     --enable=QtSql \
                                     --enable=QtSensors \
                                     --enable=QtCore \
                                     --enable=QtWidgets \
                                     --enable=QtWebKitWidgets \
                                     --enable=QtXml \
                                     --enable=QtGui \
                                     --enable=QtNetwork \
                                     --enable=QtWebKit \
                                     --enable=QtPrintSupport \
                                     --enable=QtX11Extras \
                                     --sip /usr/bin/sip \
                                     --qmake='/usr/lib/qt5/bin/qmake' \
                                     --destdir='/usr/lib/python3.4/site-packages' \
                                     --sip-incdir='/usr/include/python3.4' \
                                     CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
    
    shelltools.cd("%s/Py2Qt-gpl-5.5" % get.workDIR())
    shelltools.system("python configure.py  --confirm-license \
                                     --assume-shared \
                                     --no-timestamp \
                                     --qsci-api \
                                     --enable=QtXmlPatterns \
                                     --enable=QtSvg \
                                     --enable=QtDBus \
                                     --enable=QtQml \
                                     --enable=QtQuick \
                                     --enable=QtQuickWidgets \
                                     --enable=QtOpenGL \
                                     --enable=QtTest \
                                     --enable=QtSql \
                                     --enable=QtSensors \
                                     --enable=QtCore \
                                     --enable=QtWidgets \
                                     --enable=QtWebKitWidgets \
                                     --enable=QtXml \
                                     --enable=QtGui \
                                     --enable=QtNetwork \
                                     --enable=QtWebKit \
                                     --enable=QtPrintSupport \
                                     --enable=QtX11Extras \
                                     --destdir='/usr/lib/python2.7/site-packages' \
                                     --sip-incdir='/usr/include/python2.7' \
                                     --sip /usr/bin/sip \
                                     --qmake='/usr/lib/qt5/bin/qmake'")
Beispiel #7
0
def install():
    pisitools.dosed("setuptools/command/easy_install.py", "env python",
                    "env python3")

    pythonmodules.run("bootstrap.py", pyVer="3")
    pythonmodules.install(pyVer="3")
    pisitools.rename("/usr/bin/easy_install", "py3easy-install")
Beispiel #8
0
def install():
    pythonmodules.run("install.py -p %s/usr/" % get.installDIR())

    pisitools.dosed("%s/usr/bin/rpcalc" % get.installDIR(), "/var/pisi/%s/install" % get.srcTAG())
    pisitools.dosed("%s/usr/lib/rpcalc/rpcalc.py" % get.installDIR(), "/var/pisi/%s/install" % get.srcTAG())

    pythonmodules.fixCompiledPy("/usr/lib/rpcalc")
Beispiel #9
0
def build():
    shelltools.system("cp -rf Python Python3")
    shelltools.cd("Qt4Qt5")
    qt5.make()

    shelltools.cd("../designer-Qt4Qt5/")
    qt5.make()

    # Get Makefile of qscintilla-python via sip
    shelltools.cd("../Python")
    pythonmodules.run(
        "configure.py -n ../Qt4Qt5 -o ../Qt4Qt5 -c --pyqt=PyQt5 --pyqt-sipdir=/usr/share/sip/Py2Qt5 --qsci-sipdir=/usr/share/sip/Py2Qt5 --sip-incdir=/usr/lib/python2.7/site-packages --qmake /usr/bin/qmake"
    )
    pisitools.dosed("Makefile", "/usr/include/qt/QtPrintSupport",
                    "/usr/include/qt5/QtPrintSupport")
    pisitools.dosed("Makefile", "/usr/include/qt/QtWidgets",
                    "/usr/include/qt5/QtWidgets")
    autotools.make()

    shelltools.cd("../Python3")
    pythonmodules.run(
        "configure.py -n ../Qt4Qt5 -o ../Qt4Qt5 -c --pyqt=PyQt5 --qmake /usr/bin/qmake",
        pyVer="3")
    pisitools.dosed("Makefile", "/usr/include/qt/QtPrintSupport",
                    "/usr/include/qt5/QtPrintSupport")
    pisitools.dosed("Makefile", "/usr/include/qt/QtWidgets",
                    "/usr/include/qt5/QtWidgets")
    autotools.make()
Beispiel #10
0
def install():
    shelltools.cd("build-ansi")
    autotools.install()
    autotools.install("-C contrib")
    shelltools.cd("../build-unicode")
    autotools.install()
    autotools.install("-C contrib")

    shelltools.cd("../wxPython")
    shelltools.export(
        "CFLAGS",
        "%s -I%s/usr/include/wx-2.6" % (get.CFLAGS(), get.installDIR()))
    pythonmodules.run(
        "setup.py WX_CONFIG='%s/usr/lib/wx/config/gtk2-unicode-release-2.6 --unicode --prefix=%s/usr' \
                                  WXPORT=gtk2 \
                                  UNICODE=1 \
                                  build \
                                  install \
                                  --root=%s" %
        (get.installDIR(), get.installDIR(), get.installDIR()))

    shelltools.cd("..")
    pisitools.remove("/usr/bin/wx-config")
    pisitools.dosym("/usr/lib/wx/config/gtk2-unicode-release-2.6",
                    "/usr/bin/wx-config")
    pisitools.dosym("/usr/lib/wx/config/gtk2-ansi-release-2.6",
                    "/usr/bin/wx-config-ansi")
    pisitools.dodoc("docs/*.txt", "docs/*.htm")

    pythonmodules.fixCompiledPy()
Beispiel #11
0
def setup():
    shelltools.copytree("%s/PyQt-gpl-5.5.1" % get.workDIR(),
                        "%s/Py2Qt-gpl-5.5.1" % get.workDIR())
    pythonmodules.run("configure.py --confirm-license \
                                    --qsci-api \
                                    --sip /usr/bin/sip \
                                    --qmake='/usr/bin/qmake-qt5' \
                                    --destdir='/usr/lib/python3.4/site-packages' \
                                    --sip-incdir='/usr/include/python3.4m' \
                                    CFLAGS='%s' CXXFLAGS='%s'" %
                      (get.CFLAGS(), get.CXXFLAGS()),
                      pyVer="3")
    shelltools.system(
        "find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'"
    )

    shelltools.cd("%s/Py2Qt-gpl-5.5.1" % get.workDIR())
    pythonmodules.run("configure.py --confirm-license \
                                    --qsci-api \
                                    --destdir='/usr/lib/python2.7/site-packages' \
                                    --sip-incdir='/usr/include/python2.7' \
                                    --sip /usr/bin/py2sip \
                                    --qmake='/usr/bin/qmake-qt5' ")
    shelltools.system(
        "find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'"
    )
Beispiel #12
0
def setup():
    pythonmodules.run(
        "configure.py \
                       -i \
                       -k %s"
        % get.kdeDIR()
    )
Beispiel #13
0
def setup():
    pisitools.dosed("configure.py", "  check_license()", "# check_license()")

    pythonmodules.run("configure.py \
                       -d /usr/lib/%s/site-packages \
                       -b /usr/bin \
                       -v /usr/share/sip" % get.curPYTHON())
Beispiel #14
0
def install():
    pythonmodules.run("install.py install --no-mime --dir %s/usr" %
                      get.installDIR())

    pisitools.insinto("/etc/gconf/schemas", "mime/comicbook.schemas")

    pisitools.dodoc("ChangeLog", "COPYING", "README")
Beispiel #15
0
def install():
    pisitools.dodoc("HISTORY", "LICENSE.GPL", "THANKS", "eric/README*")
    bdir = "/usr/bin"
    idir = get.installDIR()
    ddir = "/usr/lib/%s/site-packages" % get.curPYTHON()
    pythonmodules.run("install.py -b %s -i %s -d %s -c" % (bdir, idir, ddir))
    pythonmodules.fixCompiledPy()
Beispiel #16
0
def install():
    pythonmodules.install()
    pythonmodules.run("setup2.py install --root=%s --no-compile -O0 " %
                      get.installDIR())

    pisitools.dodoc("DEVELOPERS")
    pisitools.dobin("pymol")
Beispiel #17
0
def setup():
  
    shelltools.copytree("%s/PyQt-gpl-5.4.1" % get.workDIR(), "%s/Py2Qt-gpl-5.4.1" % get.workDIR())
    pythonmodules.run("configure.py  --confirm-license \
                                     --assume-shared \
                                     --no-timestamp \
                                     --qsci-api \
                                     --enable=QtCore \
                                     --enable=QtWidgets \
                                     --enable=QtXml \
                                     --enable=QtGui \
                                     --sip /usr/local/bin/sip \
                                     --qmake='/usr/lib/qt5/bin/qmake' \
                                     --destdir='/usr/lib/python3.4/site-packages' \
                                     --sip-incdir='/usr/include/python3.4/sip3' \
                                     CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
    
    shelltools.cd("%s/Py2Qt-gpl-5.4.1" % get.workDIR())
    shelltools.system("python configure.py  --confirm-license \
                                     --assume-shared \
                                     --no-timestamp \
                                     --qsci-api \
                                     --enable=QtCore \
                                     --enable=QtWidgets \
                                     --enable=QtXml \
                                     --enable=QtGui \
                                     --destdir='/usr/lib/python2.7/site-packages' \
                                     --sip-incdir='/usr/include/python2.7/sip3' \
                                     --sip /usr/local/bin/sip \
                                     --qmake='/usr/lib/qt5/bin/qmake'")
Beispiel #18
0
def setup():
  
    shelltools.copytree("%s/PyQt-gpl-5.4.1" % get.workDIR(), "%s/Py2Qt-gpl-5.4.1" % get.workDIR())
    pythonmodules.run("configure.py  --confirm-license \
                                     --assume-shared \
                                     --no-timestamp \
                                     --qsci-api \
                                     --enable=QtCore \
                                     --enable=QtWidgets \
                                     --enable=QtXml \
                                     --enable=QtGui \
                                     --qmake='/usr/bin/qmake' \
                                     --destdir='/usr/lib/python3.4/site-packages' \
                                     --sip-incdir='/usr/include/python3.4' \
                                     CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
    
    shelltools.cd("%s/Py2Qt-gpl-5.4.1" % get.workDIR())
    shelltools.system("python configure.py  --confirm-license \
                                     --assume-shared \
                                     --no-timestamp \
                                     --qsci-api \
                                     --enable=QtCore \
                                     --enable=QtWidgets \
                                     --enable=QtXml \
                                     --enable=QtGui \
                                     --qmake='/usr/bin/qmake'")
Beispiel #19
0
def setup():
    shelltools.system(
        "find . -type f -exec sed -i 's/Python.h/python3.5m\/Python.h/g' {} \;"
    )
    pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s"' %
                      (get.CFLAGS(), get.CXXFLAGS()),
                      pyVer="3")
Beispiel #20
0
def install():

    # execute install target of build system
    shelltools.cd("Qt4/")
    autotools.make("all staticlib CC=\"%s\" CXX=\"%s\" LINK=\"%s\"" % (get.CC(), get.CXX(), get.CC()))
    pisitools.insinto("/%s/lib" % Qt4DIR, "libqscintilla2.so*")

    shelltools.cd("../designer-Qt4/")
    autotools.make("DESTDIR=\"%s/%s/plugins/designer\"" % (get.installDIR(), Qt4DIR))

    # Get Makefile of qscintilla-python via sip
    shelltools.cd("../Python")
    pythonmodules.run("configure.py -p 4 -n ../Qt4 -o ../Qt4")

    # installs not managed by the build system
    shelltools.cd("../Qt4/")
    shelltools.makedirs("%s/%s/include" % (get.installDIR(), Qt4DIR))
    shelltools.copytree("Qsci", "%s/%s/include/Qsci" % (get.installDIR(), Qt4DIR))
    pisitools.insinto("%s/translations" % Qt4DIR, "qscintilla*.qm")

    shelltools.cd("../")
    pisitools.insinto("%s/plugins/designer" % Qt4DIR, "designer-Qt4/libqscintillaplugin.so")

    #build and install qscintilla-python
    shelltools.cd("Python")
    autotools.make()
    autotools.install("DESTDIR=%s" % get.installDIR())

    shelltools.cd("..")
    pisitools.dohtml("doc/html-Qt4/")
    pisitools.insinto("/usr/share/doc/%s/Scintilla" % get.srcTAG(), "doc/Scintilla/*")

    pisitools.dodoc("ChangeLog", "LICENSE", "NEWS", "README")
Beispiel #21
0
def setup():

    shelltools.copytree("%s/PyQt-gpl-5.5" % get.workDIR(),
                        "%s/Py2Qt-gpl-5.5" % get.workDIR())
    pythonmodules.run("configure.py  --confirm-license \
                                     --assume-shared \
                                     --no-timestamp \
                                     --qsci-api \
                                     --enable=QtDBus \
                                     --enable=QtQml \
                                     --enable=QtQuick \
                                     --enable=QtQuickWidgets \
                                     --enable=QtOpenGL \
                                     --enable=QtTest \
                                     --enable=QtSql \
                                     --enable=QtSensors \
                                     --enable=QtCore \
                                     --enable=QtWidgets \
                                     --enable=QtWebKitWidgets \
                                     --enable=QtXml \
                                     --enable=QtGui \
                                     --enable=QtNetwork \
                                     --enable=QtWebKit \
                                     --enable=QtPrintSupport \
                                     --enable=QtX11Extras \
                                     --sip /usr/bin/sip \
                                     --qmake='/usr/lib/qt5/bin/qmake' \
                                     --destdir='/usr/lib/python3.4/site-packages' \
                                     --sip-incdir='/usr/include/python3.4' \
                                     CFLAGS='%s' CXXFLAGS='%s'" %
                      (get.CFLAGS(), get.CXXFLAGS()),
                      pyVer="3")

    shelltools.cd("%s/Py2Qt-gpl-5.5" % get.workDIR())
    shelltools.system("python configure.py  --confirm-license \
                                     --assume-shared \
                                     --no-timestamp \
                                     --qsci-api \
                                     --enable=QtDBus \
                                     --enable=QtQml \
                                     --enable=QtQuick \
                                     --enable=QtQuickWidgets \
                                     --enable=QtOpenGL \
                                     --enable=QtTest \
                                     --enable=QtSql \
                                     --enable=QtSensors \
                                     --enable=QtCore \
                                     --enable=QtWidgets \
                                     --enable=QtWebKitWidgets \
                                     --enable=QtXml \
                                     --enable=QtGui \
                                     --enable=QtNetwork \
                                     --enable=QtWebKit \
                                     --enable=QtPrintSupport \
                                     --enable=QtX11Extras \
                                     --destdir='/usr/lib/python2.7/site-packages' \
                                     --sip-incdir='/usr/include/python2.7' \
                                     --sip /usr/bin/sip \
                                     --qmake='/usr/lib/qt5/bin/qmake'")
Beispiel #22
0
def install():
    # create directories for xdg-utils
    for path in ["icons/hicolor", "packages", "mime/packages", "applications", "desktop-directories"]:
        pisitools.dodir("%s/%s" % (sharedir, path))

    # create directory for calibre environment module
    # the install script assumes it's there.
    pisitools.dodir("/usr/lib/%s/site-packages" % get.curPYTHON())

    pythonmodules.run(
        "setup.py install --root=%s/usr \
                                        --no-compile \
                                        --prefix=/usr \
                                        --libdir=/usr/lib \
                                        --staging-libdir=%s/usr/lib"
        % (installdir, installdir)
    )

    # clean out files under /usr/share/mime
    shelltools.system("find %s/%s/mime -maxdepth 1 -type f | xargs rm -f" % (installdir, sharedir))

    # add icons under /usr/share/pixmaps
    pisitools.dosym("%s/calibre/images/library.png" % sharedir, "%s/pixmaps/%s-gui.png" % (sharedir, get.srcNAME()))
    pisitools.dosym("%s/calibre/images/viewer.png" % sharedir, "%s/pixmaps/%s-viewer.png" % (sharedir, get.srcNAME()))

    pisitools.rename("%s/mime/packages/calibre-mimetypes" % sharedir, "calibre-mimetypes.xml")

    # packages aren't allowed to register mimetypes like this
    pisitools.remove("%s/applications/defaults.list" % sharedir)
    # pisitools.remove("%s/applications/mimeinfo.cache" % sharedir)

    # correct man page path
    pisitools.domove("%s/calibre/man/man1/*" % sharedir, "%s/man1/" % get.manDIR())
    pisitools.removeDir("%s/calibre/man" % sharedir)

    # these package are provided externally
    for pkg in ["cherrypy", "pyPdf", "routes"]:
        pisitools.removeDir("/usr/lib/%s/%s" % (get.srcNAME(), pkg))

    # mimetype icon for lrf
    for path in ["mimetypes", "apps"]:
        pisitools.dodir("%s/icons/hicolor/scalable/%s" % (sharedir, path))

    pisitools.insinto(
        "%s/icons/hicolor/scalable/mimetypes" % sharedir,
        "resources/images/mimetypes/lrf.png",
        "application-x-sony-bbeb.png",
    )

    pisitools.insinto("%s/icons/hicolor/scalable/apps" % sharedir, "resources/images/viewer.png", "viewer.png")

    # move etc/bash_completion.d from /usr/etc to /etc
    pisitools.domove("/usr/etc", "/")

    pisitools.remove("/usr/bin/calibre-uninstall")

    pisitools.removeDir("/usr/share/desktop-directories")
    pisitools.removeDir("/usr/share/packages")
    pisitools.removeDir("/usr/share/calibre/fonts")
Beispiel #23
0
def setup():
    shelltools.unlink("po/*.po")

    pythonmodules.run("setup.py configure --no-install-init \
                                          --no-install-kde \
                                          --resume=/usr/share/wicd/scripts \
                                          --suspend=/usr/share/wicd/scripts \
                                          --verbose")
Beispiel #24
0
def install():
    pythonmodules.run("install.py -z \
                                  -b %(bindir)s \
                                  -i %(installdir)s \
                                  -d %(site-packages)s \
                                  -c" % conf,
                      pyVer="3")
    pythonmodules.fixCompiledPy()
Beispiel #25
0
def setup():
    pythonmodules.run(
        'configure.py \
                       -b /usr/bin \
                       -d /usr/lib/%s/site-packages \
                       -e /usr/include/%s \
                       CFLAGS+="%s" CXXFLAGS+="%s"' %
        (get.curPYTHON(), get.curPYTHON(), get.CFLAGS(), get.CXXFLAGS()))
Beispiel #26
0
def install():
    pythonmodules.run("install.py -z \
                                  -b %(bindir)s \
                                  -i %(installdir)s \
                                  -d %(site-packages)s \
                                  -c" % conf)
    pythonmodules.fixCompiledPy()
    pisitools.dodoc("changelog", "LICENSE.GPL3", "THANKS", "README*")
Beispiel #27
0
def install():
    pythonmodules.run("install.py -z \
                                  -b %(bindir)s \
                                  -i %(installdir)s \
                                  -d %(site-packages)s \
                                  -c" % conf)
    pythonmodules.fixCompiledPy()
    pisitools.dodoc("changelog", "LICENSE.GPL3", "THANKS", "README*")
Beispiel #28
0
def setup():
    shelltools.unlink("po/*.po")

    pythonmodules.run("setup.py configure --no-install-init \
                                          --no-install-kde \
                                          --resume=/usr/share/wicd/scripts \
                                          --suspend=/usr/share/wicd/scripts \
                                          --verbose")
Beispiel #29
0
def setup():
    pythonmodules.run("configure.py --confirm-license \
                                    --qsci-api \
                                    --destdir='/usr/lib/python2.7/site-packages' \
                                    --sip-incdir='/usr/include/python2.7' \
                                    --sip /usr/bin/py2sip \
                                    --qmake='/usr/bin/qmake' ")
    shelltools.system("find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'")
Beispiel #30
0
def install():
    pythonmodules.install()

    # Generating the Grammar pickle to avoid on the fly generation causing sandbox violations
    pythonmodules.run("-c \"from sphinx.pycode.pgen2.driver import load_grammar ; \
load_grammar('%s/usr/lib/%s/site-packages/sphinx/pycode/Grammar-py2.txt')\"" %(get.installDIR(), get.curPYTHON(), ) )


    pisitools.dodoc("CHANGES", "EXAMPLES", "AUTHORS", "LICENSE", "README.rst")
Beispiel #31
0
def setup():

    pythonmodules.run("wing-install.py  --install-binary \
                                        --winghome '%s/opt/wingide' \
                                        --bin-dir %s/usr/bin " %
                      (get.workDIR(), get.workDIR()))
    shelltools.system(
        "sed -i 's|\/var\/pisi\/wing-5.1.7-1\/work\/opt\/wingide|\/opt\/wingide|' %s/opt/wingide/wing-101"
        % get.workDIR())
Beispiel #32
0
def setup():   
    pythonmodules.run("configure.py --confirm-license \
                                    --qsci-api \
                                    --sip /usr/bin/sip \
                                    --qmake='/usr/bin/qmake' \
                                    --destdir='/usr/lib/python3.8/site-packages' \
                                    --sip-incdir='/usr/include/python3.8' \
                                    CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
    shelltools.system("find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'")
Beispiel #33
0
def setup():
    pythonmodules.run(
        'configure.py \
                       -b /usr/bin \
                       -d /usr/lib/%s/site-packages \
                       -e /usr/include/%s \
                       CFLAGS+="%s" CXXFLAGS+="%s"'
        % (get.curPYTHON(), get.curPYTHON(), get.CFLAGS(), get.CXXFLAGS())
    )
Beispiel #34
0
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()))
    
    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()))
Beispiel #35
0
def setup():   
    pythonmodules.run("configure.py --confirm-license \
                                    --qsci-api \
                                    --sip /usr/bin/sip \
                                    --qmake='/usr/bin/qmake' \
                                    --destdir='/usr/lib/python3.6/site-packages' \
                                    --sip-incdir='/usr/include/python3.6m' \
                                    CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
    shelltools.system("find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'")
Beispiel #36
0
def setup():
    pythonmodules.run("configure.py --confirm-license \
                                    --qsci-api \
                                    --sip /usr/bin/sip \
                                    --destdir='/usr/lib/python3.6/site-packages' \
                                    --sip-incdir='/usr/include/python3.6m' \
                                    ")
    shelltools.system(
        "find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'"
    )
Beispiel #37
0
def install():
    pythonmodules.run("install.py -z \
                                  -b %(bindir)s \
                                  -i %(installdir)s \
                                  -d %(site-packages)s \
                                  -c" % conf)
    pythonmodules.fixCompiledPy()
    for lang in ["cs", "de", "es", "fr", "it", "ru", "tr"]:
        pisitools.insinto("%(site-packages)s/eric4/i18n" % conf, "eric/i18n/eric4_%s.qm" % lang)
    pisitools.dodoc("changelog", "LICENSE.GPL3", "THANKS", "README*")
Beispiel #38
0
def install():
    pythonmodules.install()

    # Generating the Grammar pickle to avoid on the fly generation causing sandbox violations
    pythonmodules.run("-c \"from sphinx.pycode.pgen2.driver import load_grammar ; \
        load_grammar('%s/usr/lib/%s/site-packages/sphinx/pycode/Grammar.txt')\"" %(get.installDIR(), get.curPYTHON(),  ) )

    # create sphinx documentation using itself
    shelltools.system("python sphinx-build.py doc doc/_build/html")
    pisitools.dohtml("doc/_build/html/*")
Beispiel #39
0
def install():
    pythonmodules.run("install.py -z \
                                  -b %(bindir)s \
                                  -i %(installdir)s \
                                  -d %(site-packages)s \
                                  -c" % conf)
    pythonmodules.fixCompiledPy()
    for lang in ["cs", "de", "es", "fr", "it", "ru", "tr"]:
        pisitools.insinto("%(site-packages)s/eric4/i18n" % conf, "eric/i18n/eric4_%s.qm" % lang)
    pisitools.dodoc("changelog", "LICENSE.GPL3", "THANKS", "README*")
Beispiel #40
0
def setup():    
    shelltools.cd("..")
    shelltools.makedirs("build_python3")
    shelltools.copytree("./%s" % WorkDir,  "build_python3")
    shelltools.cd(WorkDir)
    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")
Beispiel #41
0
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.8\/Python.h/g' {} \;")
    
    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")
Beispiel #42
0
def build():
    shelltools.cd("Qt4Qt5")
    autotools.make("all staticlib CC=\"%s\" CXX=\"%s\" LINK=\"%s\"" % (get.CC(), get.CXX(), get.CXX()))

    shelltools.cd("../designer-Qt4/")
    autotools.make("DESTDIR=\"%s/%s/designer\"" % (get.installDIR(), qt4.plugindir))

    # Get Makefile of qscintilla-python via sip
    shelltools.cd("../Python")
    pythonmodules.run("configure.py -p 4 -n ../Qt4Qt5 -o ../Qt4Qt5")
    autotools.make()
Beispiel #43
0
def setup():
    shelltools.cd("..")
    shelltools.makedirs("build_python3")
    shelltools.copytree("./%s" % WorkDir,  "build_python3")
    shelltools.cd(WorkDir)

    pythonmodules.run("configure.py --assume-shared --confirm-license --no-timestamp --verbose")

    shelltools.cd("../build_python3/%s" % WorkDir)

    pythonmodules.run("configure.py --assume-shared --confirm-license --no-timestamp --verbose --sipdir=/usr/share/sip-python3", pyVer = "3")
Beispiel #44
0
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' {} \;")
    
    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")
Beispiel #45
0
def build():
    shelltools.cd("Qt4/")
    autotools.make("all staticlib CC=\"%s\" CXX=\"%s\" LINK=\"%s\"" % (get.CC(), get.CXX(), get.CXX()))

    shelltools.cd("../designer-Qt4/")
    autotools.make("DESTDIR=\"%s/%s/plugins/designer\"" % (get.installDIR(), Qt4DIR))

    # Get Makefile of qscintilla-python via sip
    shelltools.cd("../Python")
    pythonmodules.run("configure.py -p 4 -n ../Qt4 -o ../Qt4")
    autotools.make()
Beispiel #46
0
def setup():
    shelltools.cd("..")
    shelltools.makedirs("build_python3")
    shelltools.copytree("./%s" % WorkDir,  "build_python3")
    shelltools.cd(WorkDir)

    pisitools.dosed("configure.py", "  check_license()", "# check_license()")
    pythonmodules.run("configure.py -q /usr/bin/qmake")

    shelltools.cd("../build_python3/%s" % WorkDir)
    pisitools.dosed("configure.py", "  check_license()", "# check_license()")
    pythonmodules.run("configure.py -q /usr/bin/qmake", pyVer = "3")
Beispiel #47
0
def setup():
    shelltools.cd("..")
    shelltools.makedirs("build_python3")
    shelltools.copytree("./%s" % WorkDir, "build_python3")
    shelltools.cd(WorkDir)

    pisitools.dosed("configure.py", "  check_license()", "# check_license()")
    pythonmodules.run("configure.py -q /usr/bin/qmake")

    shelltools.cd("../build_python3/%s" % WorkDir)
    pisitools.dosed("configure.py", "  check_license()", "# check_license()")
    pythonmodules.run("configure.py -q /usr/bin/qmake", pyVer="3")
Beispiel #48
0
def install():
    # make qt detection easy
    pisitools.dodir("/usr/qt/4")

    pythonmodules.run("install.py -z \
                                  -b %(bindir)s \
                                  -i %(installdir)s \
                                  -d %(site-packages)s \
                                  -c" % conf)

    pythonmodules.fixCompiledPy()

    pisitools.dodoc("ChangeLog", "LICENSE.GPL", "THANKS", "README*")
Beispiel #49
0
def install():
    bdir = "/usr/bin"
    idir = get.installDIR()
    ddir = "/usr/lib/%s/site-packages" % get.curPYTHON()

    pythonmodules.run("install.py -b %s -i %s -d %s -c" % (bdir, idir, ddir))
    pythonmodules.fixCompiledPy()

    #add icon
    pisitools.insinto("/usr/share/pixmaps", "eric/icons/default/eric.png",
                      "eric4.png")

    pisitools.dodoc("ChangeLog", "LICENSE.GPL", "THANKS", "README*")
Beispiel #50
0
def install():
    pythonmodules.install()

    # Generating the Grammar pickle to avoid on the fly generation causing sandbox violations
    pythonmodules.run("-c \"from sphinx.pycode.pgen2.driver import load_grammar ; \
        load_grammar('%s/usr/lib/%s/site-packages/sphinx/pycode/Grammar.txt')\"" %(get.installDIR(), get.curPYTHON(),  ) )

    # create sphinx documentation using itself
    shelltools.system("python sphinx-build.py doc doc/_build/html")
    pisitools.dohtml("doc/_build/html/*")

    pisitools.doman("doc/sphinx-build.1","doc/sphinx-quickstart.1")
    pisitools.dodoc("EXAMPLES", "CHANGES")
Beispiel #51
0
def setup():
    shelltools.cd("..")
    shelltools.makedirs("build_python3")
    shelltools.copytree("./%s" % WorkDir, "build_python3")
    shelltools.cd(WorkDir)
    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")
Beispiel #52
0
def build():
    shelltools.system("cp -rf Python Python3")
    shelltools.cd("Qt4Qt5")
    autotools.make('all staticlib CC="%s" CXX="%s" LINK="%s"' % (get.CC(), get.CXX(), get.CXX()))

    shelltools.cd("../designer-Qt4/")
    autotools.make('DESTDIR="%s/%s/designer"' % (get.installDIR(), qt4.plugindir))

    # Get Makefile of qscintilla-python via sip
    shelltools.cd("../Python")
    pythonmodules.run("configure.py -p 4 -n ../Qt4Qt5 -o ../Qt4Qt5")
    autotools.make()
    shelltools.cd("../Python3")
    pythonmodules.run("configure.py -p 4 -n ../Qt4Qt5 -o ../Qt4Qt5", pyVer="3")
    pisitools.dosed("Makefile", "-lpython3.3", "-lpython3.3m")
    autotools.make()
Beispiel #53
0
def install():
    pythonmodules.run("install.py -z \
                                  -b %(bindir)s \
                                  -i %(installdir)s \
                                  -d %(site-packages)s \
                                  -c" % conf, pyVer = "3")
    pythonmodules.fixCompiledPy()
    for lang in ["cs", "de", "es", "fr", "it", "ru", "tr"]:
        pisitools.insinto("%(site-packages)s/eric5/i18n" % conf, "eric/i18n/eric5_%s.qm" % lang)
    pisitools.dodoc("changelog", "LICENSE.GPL3", "THANKS", "README*")
#    pisitools.insinto("/usr/lib/python3.3/site-packages/", "/usr/lib/python3.3/site-packages/eric5config.py")
    # remove files conflict with eric4
    pisitools.remove("/usr/share/qt4/qsci/api/python/zope-2.11.2.api")
    pisitools.remove("/usr/share/qt4/qsci/api/python/zope-2.10.7.api")
    pisitools.remove("/usr/share/qt4/qsci/api/python/zope-3.3.1.api")
    pisitools.remove("/usr/share/qt4/qsci/api/ruby/Ruby-1.8.7.api")
Beispiel #54
0
def setup():
    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 \
                    -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/bin \
                    -d /usr/lib/%s/site-packages \
                    -e /usr/include/%s \
                    CFLAGS="%s" CXXFLAGS="%s"' % (py3dir, py3dir, get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
Beispiel #55
0
def install():
    pythonmodules.install()

    # Generating the Grammar pickle to avoid on the fly generation causing sandbox violations
    pythonmodules.run("-c \"from sphinx.pycode.pgen2.driver import load_grammar ; \
load_grammar('%s/usr/lib/%s/site-packages/sphinx/pycode/Grammar-py2.txt')\"" %(get.installDIR(), get.curPYTHON(), ) )

    #Create docs with python-Sphinx
     #shelltools.cd("doc")
     #autotools.make("html")
     #shelltools.cd("..")
    
    # create sphinx documentation using itself
    #pythonmodules.run("sphinx-build.py html ")
    #pisitools.dohtml("doc/_build/html/*")

    pisitools.dodoc("CHANGES", "EXAMPLES")
Beispiel #56
0
def build():
    shelltools.system("cp -rf Python Python3")
    shelltools.cd("Qt4Qt5")
    autotools.make("all staticlib CC=\"%s\" CXX=\"%s\" LINK=\"%s\"" % (get.CC(), get.CXX(), get.CXX()))

    shelltools.cd("../designer-Qt4Qt5")
    autotools.make("DESTDIR=\"%s/%s/designer\"" % (get.installDIR(), qt4.plugindir))

    # Get Makefile of qscintilla-python via sip
    print "Building python"
    shelltools.cd("../Python")
    pythonmodules.run("configure.py -n ../Qt4Qt5 -o ../Qt4Qt5")
    autotools.make()
    print "Building python3"
    shelltools.cd("../Python3")
    pythonmodules.run("configure.py -n ../Qt4Qt5 -o ../Qt4Qt5", pyVer = "3.4")
    pisitools.dosed("Makefile", "-lpython3.3", "-lpython3.3m")
    autotools.make()
Beispiel #57
0
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/sbin \
                    -d /usr/lib/%s/site-packages/sip5 \
                    -e /usr/include/%s/sip5 \
                    CFLAGS+="%s" CXXFLAGS+="%s"' % (py2dir, py2dir, get.CFLAGS(), get.CXXFLAGS()))

    shelltools.cd("../build_python3/%s" % WorkDir)
    pythonmodules.run('configure.py \
                    -b /usr/sbin \
                    -d /usr/lib/%s/site-packages/sip5 \
                    -e /usr/include/%s/sip5 \
                    CFLAGS="%s" CXXFLAGS="%s"' % (py3dir, py3dir, get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")