Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extras do not work when --editable and a remote URL (eg, git) are used #11951

Closed
1 task done
lrq3000 opened this issue Apr 12, 2023 · 3 comments
Closed
1 task done

Extras do not work when --editable and a remote URL (eg, git) are used #11951

lrq3000 opened this issue Apr 12, 2023 · 3 comments
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@lrq3000
Copy link

lrq3000 commented Apr 12, 2023

Description

pip chokes when trying to install from a remote url with extras if --editable is specified.

Example:

pip install --upgrade --editable "dummypiplinereturnbug[test] @ git+https://github.com/lrq3000/dummypiplinereturnbug" --verbose

Produces the following error:

ERROR: dummypiplinereturnbug[test] @ git+https://github.com/lrq3000/dummypiplinereturnbug is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).

The egg fragment form works fine, but it has been deprecated and planned for removal in pip v25 in #11617:

pip install --upgrade --editable git+https://github.com/lrq3000/dummypiplinereturnbug.git#egg=dummypiplinereturnbug[test] --verbose

Expected behavior

No response

pip version

23.0.1

Python version

3.10.8

OS

Windows 10

How to Reproduce

Use pip install with 3 arguments:

  1. --editable
  2. an extra
  3. from a remote URL

Example:
pip install --upgrade --editable "dummypiplinereturnbug[test] @ git+https://github.com/lrq3000/dummypiplinereturnbug" --verbose

Output

ERROR: dummypiplinereturnbug[test] @ git+https://github.com/lrq3000/dummypiplinereturnbug is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).

Code of Conduct

@lrq3000 lrq3000 added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Apr 12, 2023
@sbidoul
Copy link
Member

sbidoul commented Apr 12, 2023

@lrq3000 editables from PEP 508 URLs are not supported at the moment, and as far as I know no-one is working on it at the moment. So, as you noted, you need to use egg fragments for now.

So let me close this as the deprecation of egg fragments is tracked in #1289.

@sbidoul sbidoul closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2023
@lrq3000
Copy link
Author

lrq3000 commented Apr 14, 2023

@sbidoul Yes they are since #9471 , it's just the extras that are not supported. Seems like a bug, no?

@lrq3000
Copy link
Author

lrq3000 commented Apr 14, 2023

@sbidoul Ah no sorry I spoke too fast, indeed they are not supported at all. Thank you for pointing this out and linking to relevant discussions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants