pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
plpython3u and virtualenv
2+ messages / 2 participants
[nested] [flat]

* plpython3u and virtualenv
@ 2018-07-19 08:22  066ce286@free.fr
  0 siblings, 1 reply; 2+ messages in thread

From: 066ce286@free.fr @ 2018-07-19 08:22 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

Hello,

Do you think there is a way to make a pg server using a specific python virtualenv ?

Thanks for any tips. 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: plpython3u and virtualenv
@ 2018-07-25 13:10  Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  parent: 066ce286@free.fr
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2018-07-25 13:10 UTC (permalink / raw)
  To: 066ce286@free.fr; pgsql-admin@lists.postgresql.org

On 19.07.18 10:22, 066ce286@free.fr wrote:
> Do you think there is a way to make a pg server using a specific python virtualenv ?

virtualenv relies on environment settings to make it use the Python
installation in certain directories.  You could start the PostgreSQL
server inside the virtualenv.  That's not going to change which
interpreter binary it's using, since that's in the shared library
belonging to the PostgreSQL installation.  But it might make it use the
right Python module directories.  Alternatively, you could just make the
environment variable settings manually.  With a bit of experimentation
you can probably make it do useful things, but it won't match the
virtualenv experience directly.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-07-25 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-19 08:22 plpython3u and virtualenv 066ce286@free.fr
2018-07-25 13:10 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox