lang/python: remove +pyvenv flag

The pyvenv package isn't going anywhere, it's just needed by
pipenv.el (which surprisingly doesn't declare it as a dependency).
This commit is contained in:
Henrik Lissner 2019-03-04 20:46:20 -05:00
parent fbcb4e6973
commit 5bae67e299
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395
2 changed files with 12 additions and 15 deletions

View File

@ -147,6 +147,17 @@ called.")
(advice-add #'pipenv-deactivate :after-while #'+modeline|update-env-in-all-windows)))
(def-package! pyvenv
:after python
:config
(when (featurep! :ui modeline)
(add-hook 'pyvenv-post-activate-hooks #'+modeline|update-env-in-all-windows)
(add-hook 'pyvenv-post-deactivate-hooks #'+modeline|update-env-in-all-windows))
(add-to-list 'global-mode-string
'(pyvenv-virtual-env-name (" venv:" pyvenv-virtual-env-name))
'append))
(def-package! pyenv-mode
:when (featurep! +pyenv)
:after python
@ -159,19 +170,6 @@ called.")
(advice-add #'pyenv-mode-unset :after #'+modeline|update-env-in-all-windows)))
(def-package! pyvenv
:when (featurep! +pyvenv)
:after python
:config
(defun +python-current-pyvenv () pyvenv-virtual-env-name)
(when (featurep! :ui modeline)
(add-hook 'pyvenv-post-activate-hooks #'+modeline|update-env-in-all-windows)
(add-hook 'pyvenv-post-deactivate-hooks #'+modeline|update-env-in-all-windows))
(add-to-list 'global-mode-string
'(pyvenv-virtual-env-name (" venv:" pyvenv-virtual-env-name))
'append))
(def-package! conda
:when (featurep! +conda)
:after python

View File

@ -9,10 +9,9 @@
;; Environmet management
(package! pipenv)
(package! pyvenv)
(when (featurep! +pyenv)
(package! pyenv-mode))
(when (featurep! +pyvenv)
(package! pyvenv))
(when (featurep! +conda)
(package! conda))