-
-
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
consistent virtualenv location? #589
Comments
The name is a combination of the project name and the hash of the full path of Pipfile, so it will stay the same as long as you don’t move the project. I’m not sure if this can be relied on, or just implementation detail. |
We have no plans on changing this. |
It's best to run ( |
Also there's a setting, via environment variable |
@kennethreitz it would be great if there was either a cli option or perhaps a project level settings file for pipenv. I would very much like my users to just have to run |
I'm still not opposed to a pipfile.conf setup similar to how pip.conf that would work in parallel with the environment variables. We've discussed this in the past though and the decision has leaned toward not implementing this as a feature. |
Yeah, I would love to see something like One thing that I don't particularly like is that I'm just 100% focused on first time user experience for collaborators developing locally and I think pipenv solves a very large chunk of those problems for me, especially in combination with a tool like envdir. Just a few additional things like |
not happening. Pyenv is perfectly compatible with pipenv without -c — you just have to configure your shell properly. I opened a pull request to start that process already. |
e.g. pyenv is doing it wrong. |
linking issue: pyenv/pyenv#982 |
@kennethreitz would you accept a PR that would allow for a custom virtualenv name? I tend to do multi-app projects so the path to my Pipfile would be |
no |
Note for PyCharm users - you can change the name that PyCharm gives to the virtualenv. It is only the name of the virtualenv that is a shared setting, not the location. Provided the name of the virtualenv is the same for everyone everything works as expected. Note you can't set the name when creating the virtualenv in PyCharm, you can only edit the name later. To change the name click on "Show All ..." in the dropdown at the side of the virtualenv drop down. Then click on your virtualenv and click the edit icon (the pencil). Then you can rename the virtualenv to match the agreed team name. |
Set PIPENV_VENV_IN_PROJECT=1 to get a consistent location (will go to
$PROJECT/.venv )
…On Sun, Mar 18, 2018 at 7:54 AM Hamish Downer ***@***.***> wrote:
Note for PyCharm users - you can change the name that PyCharm gives to the
virtualenv. It is only the name of the virtualenv that is a shared setting,
not the location. Provided the name of the virtualenv is the same for
everyone everything works as expected.
Note you can't set the name when creating the virtualenv in PyCharm, you
can only edit the name later. To change the name click on "Show All ..." in
the dropdown at the side of the virtualenv drop down. Then click on your
virtualenv and click the edit icon (the pencil). Then you can rename the
virtualenv to match the agreed team name.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#589 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABhjq5v4GhJMKKXoNdAfe1-m5viJo11Pks5tfnUJgaJpZM4PadLY>
.
|
We're fine with the current algorithm in |
hi, I was wondering if its possible to have a consistent named virtualenv path? Some people on my team like to use
pycharm
which I believe needs to have a consistent path to a virtualenv to work properly. It's not entirely clear to me right now when the virtualenv path (pipenv --venv) changes.I understand I can use
WORKON_HOME
to change the folder but I believe the venv name is still subject to change?The text was updated successfully, but these errors were encountered: