qiBuild documentation

qitoolchain.qipackage - Binary package for use with qibuild

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.Element representing this package

install(destdir, components=None, release=True)

Install the given components of the package to the given destination. Will read: * install_manifest_<component>.txt for each component if the file exists * <component>.mask to exclude files matching some regex if the mask exists * if none exits, will apply the qisys.sh.is_runtime filter 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()

After installing elements we need to fix linux libs of the package and run the post-add script if it exists. Raises:

  • CommandFailedException if the post-add script fails
qitoolchain.qipackage.version_str_to_int(version)

Convert a version string to an integer for comparison

qitoolchain.qipackage.from_xml(element)

Load a Package From an XML File

qitoolchain.qipackage.from_archive(archive_path)

Load a Package from an Archive

qitoolchain.qipackage.extract(archive_path, dest)

Extract an Archive