Coding 2023-10-06
Okay, I kind of gave myself a rough time today, so I'm going to try to go a little easier on myself right now.
I mentioned yesterday wanting to rework my Python setup. My goal is to put together a better experience than I have currently. Right now, my Python installs are provided by pyenv, and, through a mix of existing and hand-rolled plugins, I manually-ish set up virtual environments for running scripts and having the requirements for projects.
Problems with this include: too many Pythons, and, relatedly-ish, something is always outdated.
One aspect that I don't have a plan for yet is that I can set a virtual environment per directory. (I do have an idea, which is "copy the stuff I'm doing with opam" ("and also try not to think too hard about how my OCaml tooling is set up in NeoVim but not Kakoune"))
Aside from that, though, here's the idea:
- Stop activating pyenv in my config.fish file, but leave the entire directory tree in place
- Get Python from deadsnakes PPA
- Punt on installing PyPy because I don't use it for much
- Configure pip to require an activated virtualenv
- Create virtualenv for pipx and install it, set up shell integration
- Install a bunch of binaries
- Figure out the logic for directory-based virtualenvs, and do it
All of that kind of has to be in one day so I can actually publish my post when I'm done, so I'm going to try to do that last step tomorrow, then pull the trigger on all of this over the weekend. For now, I'm going to wind down.
Good night.