today I learned that running setup.py directly is deprecated.

The more I use python, the less I understand it.

apparently, the correct way to do it is to run pip install . I guess.
@da_667 before i learned how to use venv it was constantly yelling at me for installing things with sudo -H python3 -m pip install <package>, i think in newer versions they just straight up refuse to let you do that now. i'm probably better off now for learning venv because i did end up breaking my entire python install a couple times and had to figure out how to erase everything and reinstall to fix it, which can get tricky if reinstalling your python environment depends on running python lol

@krishean @da_667 Yeah, you need to pass something like --fuck-up-my-shit (paraphrased) to get pip to actually install things outside of a venv on most systems these days, because it can break OS components if there's an incompatibility with the OS-level packages. And can confirm, you do not want to have to debug that.

There's also pipx these days, which is very useful for "self-contained" applications like yt-dlp because it automatically manages the venvs for you and creates wrapper scripts in ~/.local/bin/.

@becomethewaifu @da_667 interesting, i've been managing the venv manually so far when installing yt-dlp, i'll have to check out pipx and see if that simplifies things because it sounds like it does exactly what i'm doing now
@krishean @da_667 As long as you add ~/.local/bin to your PATH, it's literally as simple as pipx install yt-dlp and a few other commands to install some optional deps if needed: pipx inject yt-dlp <package>
@becomethewaifu @da_667 i've usually been using ./venv/bin/python3 -m pip install --upgrade 'yt-dlp[default]' after setting up the venv because somewhere in the yt-dlp docs it said to use the [default] as part of the install command for some reason

@krishean @da_667

Python environment hell is one of the most aggressively cursed things I've dealt with in the last 10 years when trying to just build some freaking labs.

The only thing I can think of that's worse off the top of my head is Powershell module bullshit.

@johntimaeus @da_667 i've had to deal with powershell modules on linux so this is a pain i am intimately familiar with

@krishean @da_667

I spent most of the day discovering the new ways that server 2025 with PS 7.4 embuggered things like
Import-Module GroupPolicy

And outright broke Add-Computer.

I haven't actively Windows touched in a while and the last few work days have convinced me that I will never take a job where Windows is a primary OS.
I say this as someone who used to have a 3 digit MCSA for w2k.