-
-
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
Using 2023.9.1 editable package installation fails with --skiplock enabled #5917
Comments
@stewartmiles This I believe fixes it with a caveat: #5919 Is there ever a case where users truly want a non-editable file install? And if so, how can I tell pip hey this is a file at path "test-hello" and not have it treat it as a named requirement "test-hello" -- it gets real messy if I have to determine if its a relative path or not and if its one deep to prepend a ./ so I prefer thinking all file installs can be editable. |
Actually there were some edge cases of my initial attempt, so I just got GPT-4 involved again and pushed up another change that I think handles both editable/non and more edge cases. |
I've always done this by prepending the current directory (i.e |
@matteius thanks this now works great! |
Issue description
Enabling
--skiplock
e.g via a.env
file causes editable package installation to fail.Expected result
When enabling
--skiplock
it would be great if editable package installation succeeded as it did in version2023.7.23
.Actual result
Here's a minimal example using https://github.com/stewartmiles/pipenv_editable_install_repro
which fails with:
Steps to replicate
See above. Also I've updated https://github.com/stewartmiles/pipenv_editable_install_repro/blob/main/try_pipenv_versions.sh to test this case as well.
$ pipenv --support
Pipenv version:
'2023.9.1'
Pipenv location:
'/home/stewart/.local/pipx/venvs/pipenv/lib/python3.8/site-packages/pipenv'
Python location:
'/home/stewart/.local/pipx/venvs/pipenv/bin/python'
OS Name:
'posix'
User pip version:
'23.2.1'
user Python installations found:
PEP 508 Information:
System environment variables:
SHELL
PIPENV_VENV_IN_PROJECT
TERMCAP
SSH_AUTH_SOCK
WINDOW
SSH_AGENT_PID
PWD
LOGNAME
XDG_SESSION_TYPE
MOTD_SHOWN
HOME
LANG
LS_COLORS
SSH_CONNECTION
LESSCLOSE
XDG_SESSION_CLASS
TERM
LESSOPEN
USER
XLA_FLAGS
SHLVL
XDG_SESSION_ID
KUBECONFIG
LD_LIBRARY_PATH
XDG_RUNTIME_DIR
SSH_CLIENT
XDG_DATA_DIRS
PATH
STY
DBUS_SESSION_BUS_ADDRESS
SSH_TTY
USE_GKE_GCLOUD_AUTH_PLUGIN
_
OLDPWD
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIPENV_SKIP_LOCK
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_VENV_IN_PROJECT
:true
PIPENV_SKIP_LOCK
:true
Debug–specific environment variables:
PATH
:/usr/local/cuda/bin:/usr/local/nvidia/bin:/home/stewart/bin/gradle/bin:/home/stewart/bin/cmake/bin:/usr/local/cuda/bin:~/.local/bin:/home/stewart/.local/bin:/home/stewart/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/stewart/bin/node/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/home/stewart/src/pipenv_editable_install_repro
Contents of
Pipfile
('/home/stewart/src/pipenv_editable_install_repro/Pipfile'):The text was updated successfully, but these errors were encountered: