Skip to main content

Extensions for colcon to inspect packages which have already been installed.

Project description

Extensions for colcon-core to inspect packages which have already been installed.

Overview

These colcon extensions provide a mechanism which can be used for getting information about packages outside of the workspace, which have already been built and installed prior to the current operation. In general, it works similarly to and is based on the PackageDiscoveryExtensionPoint and PackageAugmentationExtensionPoint extensions provided by colcon-core.

Differences

Installed packages don’t generally have a single directory which stores the package content and metadata. This set of extensions store the “prefix” under which the package resides rather than the package directory (e.g. ~/workspace/install instead of ~/workspace/install/share/<package_name> or ~/workspace/src/<package_name>), meaning many packages will likely share the same path attribute value.

Recursively crawling an entire system or even selective subdirectories to look for installed packages could be very slow, so this process also deviates from the Discover -> Identify -> Augment pipeline used in colcon-core. Rather than attempting identification on prospective package locations, the discovery phase generally loads a list of installed packages from a database of some kind, such as the file-based colcon index. In some cases, the database might already populate sufficient information on the descriptor to identify the package. For others, only presence can be known, and augmentation extensions must add additional information to the descriptor by searching for specific files throughout the prefix directory.

The type attribute of an installed package works similarly to workspace packages, but must always start with installed. followed by a more specific package type. If more information about a package cannot be determined and it is known only to exist under a certain prefix, the type should be set to installed.

Supported Package Types

This package provides extensions which are able to discover packages using the PrefixPathExtensionPoint to enumerate install prefixes, and FindInstalledPackagesExtensionPoint to enumerate names of packages installed under those prefixes. It can then use the colcon index in those prefixes as well as python eggs to determine dependency information and augment the packages appropriately.

Support for more package databases for discovery and augmentation can be added by other packages by implementing and registering appropriate extensions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file colcon-installed-package-information-0.1.0.tar.gz.

File metadata

  • Download URL: colcon-installed-package-information-0.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for colcon-installed-package-information-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62f963c7484503efe1d5e907a1c45f93702933c21343883230d2491ae5f18504
MD5 41acda8aee6bf055ad61bb6d326b51ae
BLAKE2b-256 d3e2182ea187f21d304c97594321934b2bf0feea9674111f6fcbbe1e6f539d31

See more details on using hashes here.

Provenance

File details

Details for the file colcon_installed_package_information-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for colcon_installed_package_information-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8589c151810276103077986e3aa6fe3ce7f9fb7b7c73c77ec77a174eaac6a5cf
MD5 854856a3e498f02a752b59e265ae4148
BLAKE2b-256 0da40bdfb8c842d560d60d56cb338dc366801c0856ab0514a6c49ace3135f6d5

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page