Coding 2021-02-11
Minor hiccup yesterday, because I forgot to add 1 to the date when dating the entry. It's fixed now.
Anyway, today I put together one of the utility things that helps me, but I don't know how generally useful it is. It's a wrapper around zip -sf that looks for a shebang line and prints it first, if it finds it. This way, I can look at the shiv files I'm writing, see my pyenv root in the shebang, go "That's probably not portable.", and, honestly, I'm not sure what the next step is. Don't give those shiv files to anyone else, because they literally only work on my machine?
Maybe I can put every version of python I care about in pyenv global and change the shebang to, like /usr/bin/env python3.<version-I-want>. That's probably the cleanest option. And, it doesn't really work. What I want is something like pyenv-implicit, but with some additional tweaks to the logic.
It's surprisingly comfy out in the weeds, all right?
Anyway, I'm going to research how to accomplish what I want.
Hm... You know, I could try to do a bunch of weird special casing and elaborate sequence manipulations, or I could just figure out how to implement what I wanted setting "global" to do. It honestly doesn't look too hard. I'll try to remember to do it tomorrow. It'd be a bad idea right now, because I'm not focusing the greatest. That zip wrapper I mentioned earlier, it took me a while to get it right because I was making a basic mistake, and I was so sure the code was right, I couldn't actually see it. So, I should probably wrap up, in any case.
Good night.