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:
parent
fbcb4e6973
commit
5bae67e299
2 changed files with 12 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue