lang/python: add support for more env managers

+ Rewritten +conda support
+ Adds +pyenv and +pyvenv flags with support.
+ New +ipython flag to enable ipython REPL support
+ Added pipenv support. This is the new default, instead of pyenv, and
  isn't hidden behind a module flag because it is officially endorsed by
  python.

Addresses #736
This commit is contained in:
Henrik Lissner 2018-07-31 14:02:34 +02:00
parent 85af18a04d
commit 560d16d651
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 112 additions and 88 deletions

View file

@ -16,12 +16,10 @@ executable and packages."
(message "Successfully changed conda home to: %s" (abbreviate-file-name home))))
;;;###autoload
(defun +python|add-conda-env-to-modeline ()
(defun +python-conda-env ()
"Add conda environment string to the major mode modeline segment."
(setq mode-name
(if conda-env-current-name
(format "Py:conda:%s" conda-env-current-name)
"Python")))
(when conda-env-current-name
(format "conda:%s" conda-env-current-name)))
;;;###autoload
(defun +python*anaconda-mode-bootstrap-in-remote-environments (&optional callback)