コード例 #1
0
ファイル: resolver.py プロジェクト: rvsiy/rez
    def _solve(self):
        solver = Solver(package_requests=self.package_requests,
                        package_paths=self.package_paths,
                        package_filter=self.package_filter,
                        callback=self.callback,
                        package_load_callback=self.package_load_callback,
                        building=self.building,
                        verbosity=self.verbosity,
                        prune_unfailed=config.prune_failed_graph,
                        buf=self.buf)
        solver.solve()

        return solver
コード例 #2
0
ファイル: resolver.py プロジェクト: Pixomondo/rez
    def _solve(self):
        solver = Solver(package_requests=self.package_requests,
                        package_paths=self.package_paths,
                        context=self.context,
                        package_filter=self.package_filter,
                        package_orderers=self.package_orderers,
                        callback=self.callback,
                        package_load_callback=self.package_load_callback,
                        building=self.building,
                        verbosity=self.verbosity,
                        prune_unfailed=config.prune_failed_graph,
                        buf=self.buf,
                        suppress_passive=self.suppress_passive,
                        print_stats=self.print_stats)
        solver.solve()

        return solver
コード例 #3
0
ファイル: test_solver.py プロジェクト: rvsiy/rez
    def _create_solvers(self, reqs):
        s1 = Solver(reqs,
                    self.packages_path,
                    optimised=True,
                    verbosity=Solver.max_verbosity)
        s2 = Solver(reqs,
                    self.packages_path,
                    optimised=False,
                    verbosity=Solver.max_verbosity)

        s_perms = []
        perms = itertools.permutations(reqs)
        for reqs_ in perms:
            s = Solver(reqs_,
                       self.packages_path,
                       optimised=True,
                       verbosity=Solver.max_verbosity)
            s_perms.append(s)

        return (s1, s2, s_perms)