pip package items

Handles Python packages installed by pip. Note that you can use the pip_command node attribute to use pip3.

pkg_pip = {
    "foo": {
        "installed": True,  # default
        "version": "1.0",  # optional
    },
    "bar": {
        "installed": False,
    },
    "/path/to/virtualenv/foo": {
        # will install foo in the virtualenv at /path/to/virtualenv
    },
}



Attribute reference

See also: The list of generic builtin item attributes


break_system_packages

True if you want BundleWrap to add the --break-system-packages flag. Refer to https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#python3-pep-668.

Default is False.

This feature is temporary and usage is discouraged. It might be removed from future BundleWrap versions.


installed

True when the package is expected to be present on the system; False if it should be removed.


version

Force the given exact version to be installed. You can only specify a single version here, selectors like >=1.0 are NOT supported.

If it's not given, the latest version will be installed initially, but (like the other package items) upgrades will NOT be installed.