def install(self, destination): """ Install every project to the given destination """ qisys.sh.mkdir(destination, recursive=True) # Copy the manifest qisys.sh.install(self.manifest_xml, destination) # Use every available builder to install for builder in self.builders: desc = desc_from_builder(builder) if builder.projects: ui.info(ui.bold, "-> Adding %s ..." % desc) if isinstance(builder, qibuild.cmake_builder.CMakeBuilder): builder.dep_types = ["runtime"] builder.install(destination, components=["runtime"]) else: builder.install(destination) # Install self.pml_extra_files if self.pml_extra_files: ui.info(ui.bold, "-> Adding extra files ...") for src in self.pml_extra_files: full_src = os.path.join(self.base_dir, src) rel_src = os.path.relpath(full_src, self.base_dir) full_dest = os.path.join(destination, rel_src) qisys.sh.install(full_src, full_dest) # Generate and install translations ui.info(ui.bold, "-> Generating translations ...") pml_translator = qilinguist.pml_translator.PMLTranslator(self.pml_path) pml_translator.release() pml_translator.install(destination)
def install(self, destination): """ Install every project to the given destination """ # Copy the manifest qisys.sh.install(self.manifest_xml, destination) # Use every available builder to install for builder in self.builders: desc = desc_from_builder(builder) if builder.projects: ui.info(ui.bold, "-> Adding %s ..." % desc) if isinstance(builder, qibuild.cmake_builder.CMakeBuilder): builder.dep_types = ["runtime"] self.cpp_installed_files = builder.install( destination, components=["runtime"]) else: builder.install(destination) # Install self.pml_extra_files if self.pml_extra_files: ui.info(ui.bold, "-> Adding extra files ...") for src in self.pml_extra_files: full_src = os.path.join(self.base_dir, src) rel_src = os.path.relpath(full_src, self.base_dir) full_dest = os.path.join(destination, rel_src) qisys.sh.install(full_src, full_dest) # Generate and install translations ui.info(ui.bold, "-> Generating translations ...") pml_translator = qilinguist.pml_translator.PMLTranslator(self.pml_path) pml_translator.release() pml_translator.install(destination)
def install(self, destination, install_tc_packages=False, python_minify=False, with_snapshot=False): """ Install every project to the given destination """ qisys.sh.mkdir(destination, recursive=True) # Copy the manifest qisys.sh.install(self.manifest_xml, os.path.join(destination, "manifest.xml")) # Use every available builder to install build_config = None for builder in self.builders: desc = desc_from_builder(builder) if builder.projects: ui.info(ui.bold, "-> Adding %s ..." % desc) if isinstance(builder, qibuild.cmake_builder.CMakeBuilder): builder.dep_types = ["runtime"] build_config = builder.build_config builder.install(destination, components=["runtime"], install_tc_packages=install_tc_packages) else: builder.install(destination) # Install self.pml_extra_files if self.pml_extra_files: ui.info(ui.bold, "-> Adding extra files ...") for src in self.pml_extra_files: full_src = os.path.join(self.base_dir, src) rel_src = os.path.relpath(full_src, self.base_dir) full_dest = os.path.join(destination, rel_src) qisys.sh.install(full_src, full_dest) # Minify Python Files if requested if python_minify is True: extension = os.path.splitext(rel_src)[1].strip().lower() if extension == ".py": minify_python(full_dest) if with_snapshot: ui.info(ui.bold, "-> Generating snapshot ...") qisrc.snapshot.generate_snapshot(self.git_worktree, os.path.join(destination, "snapshot.json"), deprecated_format=False) # Generate and install translations ui.info(ui.bold, "-> Generating translations ...") pml_translator = qilinguist.pml_translator.PMLTranslator(self.pml_path) pml_translator.release(build_config=build_config) pml_translator.install(destination)
def install(self, destination): """ Install every project to the given destination """ # Use every available builder to install for builder in self.builders: desc = desc_from_builder(builder) if builder.projects: ui.info(ui.bold, "-> Adding %s ..." % desc) if isinstance(builder, qibuild.cmake_builder.CMakeBuilder): builder.dep_types=["runtime"] self.cpp_installed_files = builder.install(destination, components=["runtime"]) else: builder.install(destination) # Also install self.pml_extra_files if self.pml_extra_files: ui.info(ui.bold, "-> Adding extra files ...") for src in self.pml_extra_files: full_src = os.path.join(self.base_dir, src) rel_src = os.path.relpath(full_src, self.base_dir) full_dest = os.path.join(destination, rel_src) qisys.sh.install(full_src, full_dest)
def install(self, destination): """ Install every project to the given destination """ # Use every available builder to install for builder in self.builders: desc = desc_from_builder(builder) if builder.projects: ui.info(ui.bold, "-> Adding %s ..." % desc) if isinstance(builder, qibuild.cmake_builder.CMakeBuilder): builder.dep_types = ["runtime"] self.cpp_installed_files = builder.install( destination, components=["runtime"]) else: builder.install(destination) # Also install self.pml_extra_files if self.pml_extra_files: ui.info(ui.bold, "-> Adding extra files ...") for src in self.pml_extra_files: full_src = os.path.join(self.base_dir, src) rel_src = os.path.relpath(full_src, self.base_dir) full_dest = os.path.join(destination, rel_src) qisys.sh.install(full_src, full_dest)
def install(self, destination, install_tc_packages=False, python_minify=False): """ Install every project to the given destination """ qisys.sh.mkdir(destination, recursive=True) # Copy the manifest qisys.sh.install(self.manifest_xml, os.path.join(destination, "manifest.xml")) # Use every available builder to install build_config = None for builder in self.builders: desc = desc_from_builder(builder) if builder.projects: ui.info(ui.bold, "-> Adding %s ..." % desc) if isinstance(builder, qibuild.cmake_builder.CMakeBuilder): builder.dep_types = ["runtime"] build_config = builder.build_config builder.install(destination, components=["runtime"], install_tc_packages=install_tc_packages) else: builder.install(destination) # Install self.pml_extra_files if self.pml_extra_files: ui.info(ui.bold, "-> Adding extra files ...") for src in self.pml_extra_files: full_src = os.path.join(self.base_dir, src) rel_src = os.path.relpath(full_src, self.base_dir) full_dest = os.path.join(destination, rel_src) qisys.sh.install(full_src, full_dest) # Minify Python Files if requested if python_minify is True: extension = os.path.splitext(rel_src)[1].strip().lower() if extension == ".py": minify_python(full_dest) # Generate and install translations ui.info(ui.bold, "-> Generating translations ...") pml_translator = qilinguist.pml_translator.PMLTranslator(self.pml_path) pml_translator.release(build_config=build_config) pml_translator.install(destination)