qitoolchain.qipackage - Binary package for use with qibuild¶
-
class
qitoolchain.qipackage.QiPackage(name, version=None, path=None)¶ Binary package for use with qibuild.
Package names are unique in a given toolchain. path is None until the package is added to a database
-
license¶ The license of the package
-
load_deps()¶ Parse package.xml, set the dependencies
-
to_xml()¶ Return an
etree.Elementrepresenting this package
-
install(destdir, components=None, release=True)¶ Install the given components of the package to the given destination
Will read
install_manifest_<component>.txtfor each component if the file exists<component>.maskto exclude files matching some regex if the mask exists- if none exits, will apply the
qisys.sh.is_runtimefilter when installing runtime component
Note that when installing ‘test’ component, only the install_manifest_test.txt manifest file will be read
-
load_package_xml()¶ Load metadata from package.xml
Assume self.path is set: must be called after the package has been added to a toolchain
-
reroot_paths()¶ Make sure all the paths are absolute. Assume self.path is set: must be called after the package has been added to a toolchain
-
post_add()¶ Run the post-add script if it exists.
- Raises:
- CommandFailedException if the post-add script fails
-