colcon-installed-package-information
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.
Metadata
Release files for colcon-installed-package-information 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| colcon-installed-package-information-0.2.1.tar.gz | 14.3 kB | Without provenance | Details for colcon-installed-package-information-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colcon_installed_package_information-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for colcon_installed_package_information-0.2.1-py3-none-any.whl |
Total release size: 28.7 kB
Release files / colcon-installed-package-information-0.2.1.tar.gz
| Download URL | colcon-installed-package-information-0.2.1.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
722abf5af8ddd1c4acc560aa6825e76947df4a92bb935a64d00edbcd8a548b8b
|
|
BLAKE2b-256 checksum How to use checksums |
5116172fe1765f1e3a43f1e1d43e7f6d66af054f3e361e524a195dbd63b22109
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/59.8.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Release files / colcon_installed_package_information-0.2.1-py3-none-any.whl
| Download URL | colcon_installed_package_information-0.2.1-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71af86bafc5b529c80682a68ff4b92a0f595ac07d32c2ba0a78068910a84a5a0
|
|
BLAKE2b-256 checksum How to use checksums |
562d137b67a3de002818bfc8ac18ba7beebd166429c5367d124f3ae104d39e22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/59.8.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Security for colcon-installed-package-information 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.