Re: doc: virtual envs with Pl/Python

2024-10-17 Thread Jacob Champion
On Thu, Oct 17, 2024 at 2:03 PM Tom Lane wrote: > What I'm still confused about is whether this is anything that > a typical user of Python shouldn't be expected to know already. I mean... I think I agree, but also it seems like people regularly find ways to shoot themselves in the foot, so I'm n

Re: doc: virtual envs with Pl/Python

2024-10-17 Thread Tom Lane
Jacob Champion writes: > On Thu, Oct 17, 2024 at 1:10 PM Florents Tselai > wrote: >> Which means that if you want non-standard packages in your Pl/Python code, >> you’ll have to `sudo python3 -m pip install` things > Or `sudo apt install python3-`, or `pip install --user > ` as the database user

Re: doc: virtual envs with Pl/Python

2024-10-17 Thread Jacob Champion
On Thu, Oct 17, 2024 at 1:10 PM Florents Tselai wrote: > Which means that if you want non-standard packages in your Pl/Python code, > you’ll have to `sudo python3 -m pip install` things Or `sudo apt install python3-`, or `pip install --user ` as the database user, or... Virtualenvs are great --

Re: doc: virtual envs with Pl/Python

2024-10-17 Thread Florents Tselai
> On 17 Oct 2024, at 5:10 PM, Peter Eisentraut wrote: > > On 17.10.24 15:56, Tom Lane wrote: >> Florents Tselai writes: >>> I think there should be a mention of virtual environments in the plpython >>> docs. >> Why? We are not here to teach people how to use Python. More, this >> patch seems

Re: doc: virtual envs with Pl/Python

2024-10-17 Thread Peter Eisentraut
On 17.10.24 15:56, Tom Lane wrote: Florents Tselai writes: I think there should be a mention of virtual environments in the plpython docs. Why? We are not here to teach people how to use Python. More, this patch seems like not merely teaching Python, but teaching the use of specific Python

Re: doc: virtual envs with Pl/Python

2024-10-17 Thread Tom Lane
Florents Tselai writes: > I think there should be a mention of virtual environments in the plpython > docs. Why? We are not here to teach people how to use Python. More, this patch seems like not merely teaching Python, but teaching the use of specific Python installation patterns that might or

doc: virtual envs with Pl/Python

2024-10-17 Thread Florents Tselai
I think there should be a mention of virtual environments in the plpython docs. Something like $attached maybe? v1-0001-Add-tip-on-using-virtual-envs-with-Pl-Python.patch Description: Binary data