Skip to content

Commit

Permalink
tweak(python): better pyenv integration (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jan 6, 2024
1 parent 762da5f commit 685bdcf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,18 @@ Functions are differentiated into \"special forms\", \"built-in functions\" and
(when (derived-mode-p 'gud-mode)
(delete-overlay +gud-overlay)))))

(use-package python
:init
(defcustom +python-enable-pyenv nil
"Enable integration for pyenv.
This variable should be set early, either in \"early-config.el\" or \"init-tweaks.el\"."
:group 'minemacs :type 'boolean)
(when +python-enable-pyenv (and (executable-find "pyenv") (file-directory-p "~/.pyenv/shims/"))
(setenv "WORKON_HOME" "~/.pyenv/versions")
(setenv "PIPENV_PYTHON" "~/.pyenv/shims/python")
(setenv "VIRTUALENVWRAPPER_PYTHON" "~/.pyenv/shims/python")
(setenv "VIRTUALENVWRAPPER_VIRTUALENV" "~/.pyenv/shims/python")))

(use-package org
:straight (:type built-in)
:preface
Expand Down

0 comments on commit 685bdcf

Please sign in to comment.