Skip to content

pipx-only environment variable to allow pipx-specific help messages #1805

@pdftl-dev

Description

@pdftl-dev

What's the problem this feature will solve?
I want to tell users to run pipx inject mytool mytool[feature] when mytool is installed with pipx, or pip install mytool[feature] otherwise. Currently I tell users to use pip if they are missing an optional dependency required for a particular feature, and this is wrong for pipx users. But I haven't found a non-hacky way to tailor a message for pipx users only.

Describe the solution you'd like
Expose an environment variable or metadata file indicating the tool was installed via pipx, so that my software can determine if it was installed via pipx or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions