-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
pipenv trying to install "-e" instead of actual VCS URL #2714
Comments
If I misunderstood something, please let me know what the correct solution is. I will be happy to provide further input for the documentation. Perhaps this could be added to #2702 as well? |
Sorry for the confusion, we are in the process of reworking some of the legacy parser code that is responsible for this which still causes this type of issue For now you should be able to just drop the surrounding quotes and it should work fine, but let us know if it doesn't closing for now, feel free to repoen if this stays broken for you, thanks for the report! |
Thanks for the info!
I was running into issues with Zsh trying to parse special shell characters, so this isn't working:
I therefore put the argument (i.e. the Git URL) into quotes, and I assumed that this would work, since |
@slhck you would think they are separate arguments. They will be (soon), but right now, they arent :( |
I see, thanks for the heads-up! I tried to put all arguments in quotes as follows:
… but that only prints the usage info:
Would you consider reopening this until the parsing is fixed? What would be the proper workaround? For now I'm manually editing the |
Fix the parsing of an editable package. When the package name is '-e', it will be concatenated with the next package in the list (which is the VCS URL).
Fix the parsing of an editable package. When the package name is '-e', it will be concatenated with the next package in the list (which is the VCS URL).
Fix the parsing of an editable package. When the package name is '-e', it will be concatenated with the next package in the list (which is the VCS URL).
Issue description
I want to install a Git dependency:
I'm trying to run the following with
pipenv/2018.7.1
:It works, but says:
So, for lack of better knowledge of how to do that, I try:
Expected result
The pip should be installed in editable mode and added to
Pipfile
andPipfile.lock
.Actual result
It tries to install
-e
:Is that an issue with requirements parsing, or am I doing something wrong? I thought that editable dependencies worked like that (e.g. by looking at the documentation here: https://docs.pipenv.org/basics/#editable-dependencies-e-g-e)
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv'
Python location:
'/usr/local/Cellar/pipenv/2018.7.1/libexec/bin/python3.7'
Other Python installations in
PATH
:2.6
:/usr/bin/python2.6
2.6
:/usr/bin/python2.6
2.7
:/usr/local/bin/python2.7
2.7
:/usr/local/bin/python2.7
2.7
:/usr/bin/python2.7
3.6
:/Users/werner/.local/share/projects-xEhMcwIZ/bin/python3.6m
3.6
:/Users/werner/.local/share/projects-xEhMcwIZ/bin/python3.6
3.6
:/Users/werner/.pyenv/shims/python3.6
3.7
:/usr/local/bin/python3.7m
3.7
:/usr/local/bin/python3.7
3.6.5
:/Users/werner/.local/share/projects-xEhMcwIZ/bin/python
3.6.5
:/Users/werner/.pyenv/shims/python
2.7.15
:/usr/local/bin/python
2.7.10
:/usr/bin/python
2.7.15
:/usr/local/bin/python2
3.6.5
:/Users/werner/.local/share/projects-xEhMcwIZ/bin/python3
3.6.5
:/Users/werner/.pyenv/shims/python3
3.7.0
:/usr/local/bin/python3
PEP 508 Information:
System environment variables:
PATH
AUTOJUMP_ERROR_PATH
SPACESHIP_VERSION
TERM_PROGRAM
AUTOJUMP_SOURCED
PIP_PYTHON_PATH
SHELL
TERM
HISTSIZE
SAVEHIST
CLICOLOR
TMPDIR
Apple_PubSub_Socket_Render
TERM_PROGRAM_VERSION
TERM_SESSION_ID
LC_ALL
USER
LS_COLORS
SSH_AUTH_SOCK
__CF_USER_TEXT_ENCODING
VIRTUAL_ENV
PAGER
VIRTUAL_ENV_DISABLE_PROMPT
LSCOLORS
PIPENV_ACTIVE
_
PWD
EDITOR
LANG
TASTE_API_KEY
ITERM_PROFILE
XPC_FLAGS
PYTHONDONTWRITEBYTECODE
RBENV_SHELL
XPC_SERVICE_NAME
SPACESHIP_ROOT
COLORFGBG
HOME
SHLVL
PYENV_SHELL
ITERM_SESSION_ID
LOGNAME
LESS
LESSOPEN
DISPLAY
SECURITYSESSIONID
HISTFILE
COLORTERM
Pipenv–specific environment variables:
PIPENV_ACTIVE
:1
Debug–specific environment variables:
PATH
:/usr/local/Cellar/pipenv/2018.7.1/libexec/tools:/Users/werner/.local/share/virtualenvs/projects-xEhMcwIZ/bin:/Users/werner/.pyenv/shims:/Library/TeX/texbin:/Users/werner/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/usr/texbin:/usr/bin:/usr/sbin:/bin:/sbin:/Users/werner/bin:/Users/werner/Documents/Binaries:/usr/local/opt/fzf/bin
SHELL
:/bin/zsh
EDITOR
:vim
LANG
:en_US.UTF-8
PWD
:/Users/werner/Documents/Projects/
VIRTUAL_ENV
:/Users/werner/.local/share/virtualenvs/projects-xEhMcwIZ
Contents of
Pipfile
('/Users/werner/Documents/Projects/Pipfile'):Contents of
Pipfile.lock
('/Users/werner/Documents/Projects/Pipfile.lock'):The text was updated successfully, but these errors were encountered: