[issue35706] Make it easier to use a venv with an embedded Python interpreter

PyScripter report at bugs.python.org
Mon Feb 4 12:01:26 EST 2019


PyScripter <pyscripter at gmail.com> added the comment:

"Personally, I am 100% against letting an embedded runtime automatically pick up any settings from the environment. You don't know where they came from."

Why is that?  When the embedding application is using Py_SetPythonHome there is clear intent to use a specific python setup.  This is no different to using any other Python setup.  Why venvs should be treated differently that standard installations?

As to manually setting the path, why pass the burden to the embedding application.  The idea is that python, in the embedding application, should work as in the python executable.   Trying to match the complex and evolving algorithms that python uses to setup the path, is a huge and unnecessary burden on the embedding application.

----------

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


More information about the Python-bugs-list mailing list