From d38e666746e7c57da589fdda15b900855dedf002 Mon Sep 17 00:00:00 2001 From: Steve Shanks Date: Fri, 13 Nov 2020 10:50:50 +0000 Subject: [PATCH] Update pyenv docs to avoid using shim Also removed the PIPENV_PYTHON suggestion, as this is likely to cause confusion if added to e.g. .bashrc - it will always be set to the global pyenv. Fixes #4534 --- docs/diagnose.rst | 11 +++-------- news/4534.doc.rst | 1 + 2 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 news/4534.doc.rst diff --git a/docs/diagnose.rst b/docs/diagnose.rst index 0ce6360ef7..f5fb599454 100644 --- a/docs/diagnose.rst +++ b/docs/diagnose.rst @@ -58,14 +58,9 @@ distributions, with version name like ``3.6.4`` or similar. ------------------------------------------------------------------ Pipenv by default uses the Python it is installed against to create the -virtualenv. You can set the ``--python`` option, or -``$PYENV_ROOT/shims/python`` to let it consult pyenv when choosing the -interpreter. See :ref:`specifying_versions` for more information. - -If you want Pipenv to automatically “do the right thing”, you can set the -environment variable ``PIPENV_PYTHON`` to ``$PYENV_ROOT/shims/python``. This -will make Pipenv use pyenv’s active Python version to create virtual -environments by default. +virtualenv. You can set the ``--python`` option to ``$(pyenv which python)`` +to use your current pyenv interpreter. See :ref:`specifying_versions` for more +information. .. _unknown-local-diagnose: diff --git a/news/4534.doc.rst b/news/4534.doc.rst new file mode 100644 index 0000000000..9ec38cb174 --- /dev/null +++ b/news/4534.doc.rst @@ -0,0 +1 @@ +Fix suggested pyenv setup to avoid using shimmed interpreter