https://pantsbuild.org/ logo
#random
Title
👍 1
c

curved-television-6568

04/30/2023, 1:14 PM
I agree with this change. The title is misleading. What you can’t do is use pip to install to your systems Python env, but using a venv you can use pip as usual. I’ve always found to use pip install to your system env a bad practice that may be difficult to repair should it get broken.
w

wide-midnight-78598

04/30/2023, 1:24 PM
Agreed. I kinda wish that it did something like NPM, which is you have to specify "-g" for anything system/global level
Accidentally pip installing to system has been a pain in the ass for years for me
3
f

fresh-cat-90827

05/01/2023, 7:57 AM
I've started doing export PIP_REQUIRE_VIRTUALENV=true on the machines
c

curved-television-6568

05/01/2023, 11:31 AM
Woah nice. Wasn’t aware of that option! 🤩
w

wide-midnight-78598

05/01/2023, 12:00 PM
🤯 🤯 🤯
f

fresh-cat-90827

05/01/2023, 12:25 PM
You are welcome 😁
b

bitter-ability-32190

05/01/2023, 12:49 PM
I can't expect my engs to have that set though. And there's so much
pip install myawesomepackage
in the wild 🤦‍♂️
f

fresh-cat-90827

05/01/2023, 1:42 PM
Yes. It's the best effort thing, isn't it. If you can control the machine scaffolding process, you could get this into the bashrc or something.
But I guess even telling people they can use that, I'd find that already helpful
a

ancient-vegetable-10556

05/01/2023, 3:18 PM
I am so glad that distros are finally going out of their way to make it hard to use system Python