-
-
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
Can I specify PIPENV_VENV_IN_PROJECT in Pipfile? #2197
Comments
No, this has been discussed in the past. It really does not make sense because the virtualenv location is a personal preference, not a project preference. There is little reason (as far as I can see) to force others into using the same config. |
That depends very much on the project and other tooling required, doesn't it? I'll certainly live with the answer being "no", but disagree that it never matters. |
I agree this may not be impossible, but, well, let’s say I will try to make a very strong argument against this requirement if I ever need to be involved in such a project. |
We have discussed this in the past -- it is definitely something we want to keep as a user level setting (unless there is a virtualenv in the project directory) |
For the lurkers, here are some related issues:
|
Things you can do:
For points 1 and 4, pipenv will pick this up automatically |
For what it's worth, what I eventually came up with was a script to build a .deb for my project, using a virtualenv created by pipenv as fodder. To build, my script moves aside any existing pipenv-managed venv and let's pipenv create a new one (at whatever location it happens to choose). The lib/pythonX.Y/site-packages directory is then used as a component to create the raw input for dpkg-deb (which does not contain a venv). The application package then depends on a clean, non-system Python installation. |
Is there a way to specify PIPENV_VENV_IN_PROJECT in a Pipfile? Adding an empty directory to source control is not universally supported, and dropping a .venv/README.txt or something similar to force creation of the directory seems unfortunate.
The text was updated successfully, but these errors were encountered: