コード例 #1
0
                     "--confirm-license",
                     "-b", bp,
                     "-d", os.path.join(bp, "Lib", "site-packages"),
                     "-v", os.path.join(bp, "sip", "PyQt5"),
                     "--sip-incdir", os.path.join(bp, "Include"),
                     "--spec=win32-msvc"],
                    env=pyqt5_env(),
                    cwd=self._context["build_path"],
                    shell=True,
                    stdout=sout, stderr=serr)
                proc.communicate()
                if proc.returncode != 0:
                    logging.error("failed to run pyqt configure.py (returncode %s), see %s and %s",
                                  proc.returncode, soutpath, serrpath)
                    return False

        return True


Project("PyQt5") \
    .depend(build.Execute(copy_pyd)
            .depend(Patch.Copy([os.path.join(qt_inst_path(), "bin", "Qt5Core.dll"),
                                os.path.join(qt_inst_path(), "bin", "Qt5Xml.dll")],
                               doclambda(lambda: python.python['build_path'], "python path"))
                    .depend(build.Make(environment=lazy.Evaluate(pyqt5_env)).install()
                            .depend(PyQt5Configure()
                                    .depend("sip")
                                    .depend("Qt5")
                                    .depend(sourceforge.Release("pyqt", "PyQt5/PyQt-{0}/PyQt5_gpl-{0}.zip"
                                                                .format(pyqt_version), tree_depth=1))))))
コード例 #2
0
                    os.path.join(bp, "sip"), "-e",
                    os.path.join(bp, "include")
                ],
                             env=config["__environment"],
                             cwd=self._context["build_path"],
                             shell=True,
                             stdout=sout,
                             stderr=serr)
                proc.communicate()
                if proc.returncode != 0:
                    logging.error(
                        "failed to run sip configure.py (returncode %s), see %s and %s",
                        proc.returncode, soutpath, serrpath)
                    return False

        return True


Project('sip') \
    .depend(build.Execute(copy_pyd)
            .depend(build.Make(environment=sip_environment()).install()
                    .depend(SipConfigure()
                            .depend("Python")
                            .depend(sourceforge.Release("pyqt",
                                                        "sip/sip-{0}/sip-{0}.zip".format(sip_version),
                                                        1)
                                    )
                            )
                    )
            )
コード例 #3
0
    pyqt_source = urldownloadany.URLDownloadAny((
        urldownload.URLDownload(
            "https://www.riverbankcomputing.com/static/Downloads/PyQt5/{0}/PyQt5_gpl-{0}.zip"
            .format(pyqt_version),
            tree_depth=1),
        urldownload.URLDownload(
            "https://www.riverbankcomputing.com/static/Downloads/PyQt5/PyQt5_gpl-{0}.zip"
            .format(pyqt_version),
            tree_depth=1),
        sourceforge.Release(
            "pyqt",
            "PyQt5/PyQt-{0}/PyQt5_gpl-{0}.zip".format(pyqt_version),
            tree_depth=1)))

    Project("PyQt5") \
        .depend(build.Execute(copy_pyd)
                .depend(Patch.Copy([os.path.join(qt_inst_path(), "bin", "Qt5Core.dll"),
                                    os.path.join(qt_inst_path(), "bin", "Qt5Xml.dll")],
                                   doclambda(lambda: python.python['build_path'], "python path"))
                        .depend(build.Make(environment=lazy.Evaluate(pyqt5_env)).install()
                                .depend(PyQt5Configure()
                                        .depend("sip")
                                        .depend("Qt5")
                                        .depend(build.Execute(init_patch)
                                                .depend(pyqt_source)
                                                )
                                        )
                                )
                        )
                )
コード例 #4
0
        serrpath = os.path.join(self._context["build_path"], "stderr.log")
        with open(soutpath, "w") as sout:
            with open(serrpath, "w") as serr:
                logging.debug("123 %s", python.python['build_path'])
                bp = python.python['build_path']

                proc = Popen([os.path.join(python.python['build_path'], "PCbuild", "amd64", "python.exe"), "configure.py",
                     "-b", bp,
                     "-d", os.path.join(bp, "Lib", "site-packages"),
                     "-v", os.path.join(bp, "sip"),
                     "-e", os.path.join(bp, "include")],
                    env=config["__environment"],
                    cwd=self._context["build_path"],
                    shell=True,
                    stdout=sout, stderr=serr)
                proc.communicate()
                if proc.returncode != 0:
                    logging.error("failed to run sip configure.py (returncode %s), see %s and %s",
                                  proc.returncode, soutpath, serrpath)
                    return False

        return True


Project('sip') \
    .depend(build.Execute(copy_pyd)
            .depend(build.Make(environment=sip_environment()).install()
                    .depend(SipConfigure()
                            .depend("Python")
                            .depend(sip_url))))
コード例 #5
0
                             environment=webkit_env,
                             working_directory=lambda: os.path.join(qt5['build_path'], "qtwebkit"),
                             name="build webkit") \
        .depend('grep').depend('flex')

    # comment to build webkit
    #build_webkit = dummy.Success("webkit")

    init_repo = build.Run("perl init-repository", name="init qt repository") \
        .set_fail_behaviour(Task.FailBehaviour.CONTINUE) \
        .depend(git.Clone("git://code.qt.io/qt/qt5.git", qt_version))

    qt5 = Project("Qt5") \
        .depend(build.Install()
                .depend(build_webkit
                        .depend(build.Make(lambda: os.path.join(jom["build_path"],
                                                                "jom.exe -j {}".format(num_jobs)))
                                .depend("jom")
                                .depend(build.Run(configure_cmd, name="configure qt")
                                        .depend(patch.Replace("qtbase/configure.bat",
                                                              "if not exist %QTSRC%.gitignore goto sconf", "")
                                                .depend(webkit_patch
                                                        .depend(init_repo)
                                                        )
                                                )
                                        .depend("openssl")
                                        )
                                )
                        )
            )