atom-community / atom-community/ide-python
python executable not detected outside of pipenv project
- Lenguaje dominante
- JavaScript
- Estrellas
- 238
- Forks
- 40
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
My system python is installed via homebrew/miniconda:
```
$ which python
/usr/local/Caskroom/miniconda/base/bin/python
```
When the python executable setting is left as default `python` PyLS spins up from the base environment fine.
If I set up a project with pipenv and use the suggested `$PIPENV_PATH/bin/python` then it spins up PyLS in the virtual environment and works fine for that project. However, outside of the project the python executable cannot be found.
From reviewing the code it looks like outside of a pipenv project the python path becomes `/bin/python` which is not where my system python lives. It needs to fallback to just `python`.
----
I can see that `$PIPENV_PATH` gets replaced with the output of `pipenv --venv`, however you could use `pipenv --py` to get the full path to the interpreter (or just append `/bin/python` as it's always that). In that case the executable setting won't be needed for pipenv, so it can just remain as the default `python` or be set as an absolute path if needed.
----
N.B As a workaround I tried to symlink `/bin/python` to my miniconda python. However on MacOS SIP prevents this. I'd rather not have to disable it.
Guía de contribución
Línea de trabajo
El issue concierne a la configuración del ejecutable y a la integración con Pipenv; empieza rastreando cómo se expande `$PIPENV_PATH` cuando no hay ningún proyecto de Pipenv presente. Compara el comportamiento reportado de `pipenv --venv` con `pipenv --py` y, después, verifica que el `python` predeterminado funciona tanto dentro como fuera de un proyecto de Pipenv.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, python
- Área
- devtools
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100