Skip to content

Install repo or path with extras without knowing project name #10097

@jaraco

Description

@jaraco

I'd like to be able to install a project from a file system path or URL and install extras for it without having to know the project name.

It's possible to install without knowing the project name if extras aren't needed:

pip install git+https://github.com/jaraco/pytest-perf

And it's possible to install with extras if the project name is known:

pip install 'pytest-perf[testing]@git+https://github.com/jaraco/pytest-perf'

But if one wants to install a project with its extras without knowing its name, there appears to be no syntax for that.

Perhaps pip could support something like

pip install '[testing]@git+https://github.com/jaraco/pytest-perf'

Or allow a special sentinel to stand in for the actual project name.

pip install '*[testing]@git+https://github.com/jaraco/pytest-perf'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions