today I learned that running setup.py directly is deprecated.
The more I use python, the less I understand it.
today I learned that running setup.py directly is deprecated.
The more I use python, the less I understand it.
pip install . I guess.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/.
./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 reasonI 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.
@petrillic I have to agree. Like, for example, I can see the intention of requiring virtual environments for installing custom things via pip, but also, it's the dumbest fucking thing I've ever seen.
"You should use pip to install this required package."
"okay pip install blah"
fuck you. install this python library as a software distribution package provided by your distro (if it even exists in their software repo), or re-run pip with --break-system-packages
@da_667 I hate to recommend uv given it's now associated with Anthropic, but it's about the only tool that I think does mostly what people want and does so reliably. For example, you can just say:
uvx $toolpackagename
And it will create all the venv in a well known place, intsall all the dependencies and then run it. I use this A LOT.
But I feel like Python needs to decide exactly what groups it is not interesting in serving. Because everything to everyone is a shitty proposition that gets you nowhere good.
tbh imagine trying to support rhel based distros, debian based distros, arch based distros, gentoo, and whatever other artisinal package manager.
Use a venv or pass the --do-not-open-an-issue-for-this-or-spam-the-mailing-list flag seems like a reasonable compromise.
Also I'm pretty sure rhel based systems stopped shipping with py2.7 but maybe not
at this point I genuinely don't know if its the devil you know or not for me as I also think go modules and the build system are "pretty straight forward".
I guess when comparing to.. C++?