From 05d2a4c55416338866ac677356f4fcecfa3ec8f8 Mon Sep 17 00:00:00 2001 From: John Doty Date: Mon, 26 Jun 2023 13:18:51 +0000 Subject: [PATCH 1/3] pyenv --- .config/fish/config.fish | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 3f539e0..98aff02 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -12,6 +12,13 @@ fish_add_path --append \ ~/Library/Python/3.10/bin \ /opt/awscli/bin +if command -s pyenv > /dev/null + set -Ux PYENV_ROOT $HOME/.pyenv + fish_add_path --move $PYENV_ROOT/bin + + pyenv init - | source +end + if test -n "$CODER_WORKSPACE_ID$CODER" if test -z "$BROWSER" set -x BROWSER "fwd-browse" From 115799ba5bdf3763e9beef2add7dfb4d51333e96 Mon Sep 17 00:00:00 2001 From: John Doty Date: Mon, 26 Jun 2023 13:19:27 +0000 Subject: [PATCH 2/3] LSP for python --- .emacs.d/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 56c9c76..cfbb6a7 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -359,7 +359,8 @@ (use-package eglot :ensure :commands (eglot-ensure eglot) :hook - (python-mode . eglot-ensure) + ;; 2023-06-26 Using LSP mode for python these days. + ;; (python-mode . eglot-ensure) (rust-mode . eglot-ensure) (c++-mode . eglot-ensure) (c-mode . eglot-ensure) From aa32c5abcdd534058a844c9306577c0eb8d6b61d Mon Sep 17 00:00:00 2001 From: John Doty Date: Mon, 26 Jun 2023 13:19:34 +0000 Subject: [PATCH 3/3] This was a bad system; we should use pyenv instead --- install.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/install.sh b/install.sh index 7025a41..9b2cde1 100755 --- a/install.sh +++ b/install.sh @@ -30,6 +30,3 @@ pip3 install --index-url=https://pypi.org/simple black sudo npm install -g prettier pyright curl -sSL https://install.python-poetry.org | python3 - -source /etc/profile.d/a00-homebrew-init.sh -brew install python@3.9 python@3.10 python@3.11 -