[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

Henning von Bargen report at bugs.python.org
Wed Feb 19 04:45:23 EST 2020


Henning von Bargen <h.vonbargen at gmail.com> added the comment:

As a side-note:
In my case I am embedding Python in a C program for several reasons:
- Added an additional module (generated with SWIG)
- This module needs a licence key, which I supply in the C program (to make it more difficult to extract it).
- I need a different executable name (python is too unspecific) to identify the running program in things like Windows TaskManager, Posix ps,  Oracle V$SESSION.

I'm using virtual environments only in the Linux version, the Windows version uses the embeddable ZIP distribution.

The Linux version was working with Python 2.7 and "virtualenv".
Now I'm updating to Python 3.6 and "venv" and running into this issue.

It seems like virtualenv can handle the situation, but venv can't.
Maybe it is worth looking at what virtualenv does differently?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue22213>
_______________________________________


More information about the Python-bugs-list mailing list