You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Configuring Pipenv through shell variables makes it hard to integrate it with graphical applications on macOS. The problem is that graphical applications don't inherit shell variables because they are not launched from the shell. Now, I know that there are some ways to configure env variables that are passed to GUI apps but these methods seemingly change with every release, and aren't very robust (e.g. it doesn't work if the app is launched through spotlight).
My problem specifically is that I use PyCharm, which integrates with Pipenv and I want to configure Pipenv to use PIPENV_VENV_IN_PROJECT, but it doesn't work when PyCharm launches Pipenv. This is an issue for any IDE that needs to integrate with Pipenv.
Describe the solution you'd like
I think the best solution would be to use an rc file. It is a common solution and would completely solve this problem. It would also be backward compatible because if .pipenvrc isn't found, we could fall back to environment variables (or alternatively, environment variables could override pipenvrc).
Additional context
I am on macOS where there is no reliable way to pass environment variables to GUI applications.
Is your feature request related to a problem? Please describe.
Configuring Pipenv through shell variables makes it hard to integrate it with graphical applications on macOS. The problem is that graphical applications don't inherit shell variables because they are not launched from the shell. Now, I know that there are some ways to configure env variables that are passed to GUI apps but these methods seemingly change with every release, and aren't very robust (e.g. it doesn't work if the app is launched through spotlight).
My problem specifically is that I use PyCharm, which integrates with Pipenv and I want to configure Pipenv to use
PIPENV_VENV_IN_PROJECT
, but it doesn't work when PyCharm launches Pipenv. This is an issue for any IDE that needs to integrate with Pipenv.Describe the solution you'd like
I think the best solution would be to use an rc file. It is a common solution and would completely solve this problem. It would also be backward compatible because if .pipenvrc isn't found, we could fall back to environment variables (or alternatively, environment variables could override pipenvrc).
Additional context
I am on macOS where there is no reliable way to pass environment variables to GUI applications.
$ 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.7
:/usr/bin/python2.7
2.7
:/usr/bin/python2.7
3.7
:/usr/local/bin/python3.7m
3.7
:/usr/local/bin/python3.7
2.7.10
:/usr/bin/python
3.7.0
:/usr/local/bin/python3
PEP 508 Information:
System environment variables:
PATH
TERM_PROGRAM
TERM
SHELL
OMF_CONFIG
TMPDIR
PIPENV_VENV_IN_PROJECT
Apple_PubSub_Socket_Render
TERM_PROGRAM_VERSION
TERM_SESSION_ID
LC_ALL
USER
SSH_AUTH_SOCK
__CF_USER_TEXT_ENCODING
PWD
HOMEBREW_GITHUB_API_TOKEN
LANG
ITERM_PROFILE
XPC_FLAGS
XPC_SERVICE_NAME
SHLVL
HOME
COLORFGBG
OMF_PATH
ITERM_SESSION_ID
LOGNAME
LC_CTYPE
COLORTERM
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
PIPENV_VENV_IN_PROJECT
:true
Debug–specific environment variables:
PATH
:/usr/local/Cellar/pipenv/2018.7.1/libexec/tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
SHELL
:/usr/local/bin/fish
LANG
:en_US.UTF-8
PWD
:/Users/andrew
The text was updated successfully, but these errors were encountered: