question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show warning when a URL with #egg is provided to pipx

See original GitHub issue

Describe the bug

Exposing the shell commands of extra dependencies does not work when installing via git+ssh. It works when installing from a local directory.

How to reproduce

Create a git repository git+ssh://git@gitlab.com/.../my-package.git with a package whose extra dependency exposes a shell command. Then, run

pipx install  --include-deps "git+ssh://git@gitlab.com/.../my-package.git#egg=my-package[extra-dependency]"

The shell command of the extra-dependency is not exposed, even though the extra dependency is installed in the venv.

Expected behavior

The shell command should be exposed.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
uranusjrcommented, Jul 27, 2022

So package-with-extras[httpie] @ git+https://github.com/hrittich/package-with-extras.git works correctly, while the #egg= part is actually completely discarded by pipx. Since the #egg= format is a legacy format that was never standardised, and the name @ url format was a standard much before pipx was implemented, I am inclined to say the latter form should not be used with pipx.

We could potentially emit a warning if the #egg= fragment is detected and tell the user this has no effect at all, but it’s a nice-to-have feature and not critical.

A pull request on that addition would be much welcomed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why #egg=foo when pip-installing from git repo - Stack Overflow
When installing via git or other VCS urls, you will want to find the tag or hash of the version you need. For...
Read more >
pipenv Documentation - Read the Docs
The pip documentation has the following warning around the --extra-index-urls option: Using this option to search for packages which are not in the...
Read more >
Help testing experimental features in setuptools - Packaging
warning: check: missing required meta-data: url - This warn happens if you don't specify a Homepage in project.url (or homepage , Home-page ...
Read more >
Changelog - pip documentation v22.3.1
X , pipX. ... Include Project-URLs in pip show output. ... Drop the doctype check, that presented a warning for index pages that...
Read more >
cumulusci - PyPI
CumulusCI has a new command: cci service remove . This command removes a given service. A validator now checks cumulusci.yml and shows warnings...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found