Ejemplo n.º 1
0
    def bootstrap_projects(self):
        """ Write the dependencies.cmake and the qi/path.conf files for
        every project

        """
        projects = self.deps_solver.get_dep_projects(self.projects,
                                                     ["build", "runtime", "test"])
        # subtle diffs here: dependencies.cmake must be written for *all* projects,
        # with the build dependencies
        for project in projects:
            sdk_dirs = self.get_sdk_dirs_for_project(project)
            host_dirs = self.get_host_dirs(project)
            project.write_dependencies_cmake(sdk_dirs, host_dirs=host_dirs)

        qi_path_sdk_dirs = [p.sdk_directory for p in self.build_worktree.build_projects]
        if self.toolchain:
            qi_path_sdk_dirs.extend(package.path for package in self.toolchain.packages)

        # path.conf must be written right before cmake is called, and with
        # all the dependencies
        projects = self.deps_solver.get_dep_projects(self.projects, self.dep_types)
        for project in projects:
            write_qi_path_conf(project.sdk_directory, qi_path_sdk_dirs)

        # also write a path.conf in the .qi directory
        write_qi_path_conf(self.build_worktree.dot_qi, qi_path_sdk_dirs, sdk_layout=False)
Ejemplo n.º 2
0
    def bootstrap_projects(self):
        """ Write the dependencies.cmake and the qi/path.conf files for
        every project

        """
        projects = self.deps_solver.get_dep_projects(
            self.projects, ["build", "runtime", "test"])
        # subtle diffs here: dependencies.cmake must be written for *all* projects,
        # with the build dependencies
        for project in projects:
            sdk_dirs = self.get_sdk_dirs_for_project(project)
            host_dirs = self.get_host_dirs(project)
            project.write_dependencies_cmake(sdk_dirs, host_dirs=host_dirs)

        qi_path_sdk_dirs = [
            p.sdk_directory for p in self.build_worktree.build_projects
        ]
        if self.toolchain:
            qi_path_sdk_dirs.extend(package.path
                                    for package in self.toolchain.packages)

        # path.conf must be written right before cmake is called, and with
        # all the dependencies
        projects = self.deps_solver.get_dep_projects(self.projects,
                                                     self.dep_types)
        for project in projects:
            write_qi_path_conf(project.sdk_directory, qi_path_sdk_dirs)

        # also write a path.conf in the .qi directory
        write_qi_path_conf(self.build_worktree.dot_qi,
                           qi_path_sdk_dirs,
                           sdk_layout=False)
Ejemplo n.º 3
0
 def bootstrap(self, remote_packages=None, site_packages=True):
     qipy.venv.configure_virtualenv(self.config,
                                    self.python_worktree,
                                    build_worktree=self.build_worktree,
                                    remote_packages=remote_packages,
                                    site_packages=site_packages)
     qi_path_sdk_dirs = [p.sdk_directory for p in self.build_worktree.build_projects]
     write_qi_path_conf(self.python_worktree.venv_path, qi_path_sdk_dirs)
Ejemplo n.º 4
0
 def bootstrap(self, remote_packages=None, site_packages=True,
               python_executable=None, env=None):
     """ Configure the virtualenv so that importing any Python module works """
     ok = qipy.venv.configure_virtualenv(self.config,
                                         self.python_worktree,
                                         build_worktree=self.build_worktree,
                                         remote_packages=remote_packages,
                                         site_packages=site_packages,
                                         python_executable=python_executable,
                                         env=env)
     qi_path_sdk_dirs = [p.sdk_directory for p in self.build_worktree.build_projects]
     write_qi_path_conf(self.python_worktree.venv_path, qi_path_sdk_dirs)
     return ok
Ejemplo n.º 5
0
    def bootstrap_projects(self):
        """ Write the dependencies.cmake and the qi/path.conf files for
        every project

        """
        projects = self.deps_solver.get_dep_projects(self.projects, ["build", "runtime"])
        # subtle diffs here: dependencies.cmake must be written for *all* projects,
        # with the build dependencies
        for project in projects:
            sdk_dirs = self.deps_solver.get_sdk_dirs(project, ["build"])
            project.write_dependencies_cmake(sdk_dirs)

        qi_path_sdk_dirs = [p.sdk_directory for p in self.build_worktree.build_projects]

        # path.conf must be written right before cmake is called, and with
        # all the dependencies
        projects = self.deps_solver.get_dep_projects(self.projects, self.dep_types)
        for project in projects:
            write_qi_path_conf(project.sdk_directory, qi_path_sdk_dirs)