STINNER Victor added the comment:
There is a single test which uses __cleanenv=True: test_hash.
The test pass on Windows and this issue is old. I prefer to simplify close it.
--
resolution: - out of date
status: open - closed
___
Python tracker
STINNER Victor added the comment:
Serhiy Interesting, how isolation mode works on Windows or if Python is
compiled in shared module? Should we keep these environment variables if the
__isolated keyword is used?
The __isolated parameter of script_helper._assert_python() don't start Python
Changes by Brian Curtin br...@python.org:
--
nosy: -brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20614
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Interesting, how isolation mode works on Windows or if Python is compiled in
shared module? Should we keep these environment variables if the __isolated
keyword is used?
--
___
Python tracker
Arfrever Frehtes Taifersar Arahesis added the comment:
Oh, another problem: if Python is compiled in shared module, libpython3.4.so
cannot be found.
LD_LIBRARY_PATH must also be copied if __cleanenv=True. Py_ENABLE_SHARED can
be checked in
sysconfig to decide if the environment variable
New submission from STINNER Victor:
On Windows, if Python is started with an empty environment (no environment
variable at all), Python fails with:
Fatal Python error: Failed to initialize Windows random API (CryptoGen)
It's the Windows error 0x80090006 which is not displayed in the error
STINNER Victor added the comment:
cleanenv.patch: untested test.
--
keywords: +patch
Added file: http://bugs.python.org/file34066/cleanenv.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20614
STINNER Victor added the comment:
When Python is executed in an empty environement, not only it displays Fatal
Python error: Failed to initialize Windows random API (CryptoGen), but it
opens also the fatal error popup on Windows.
The issue #19983 proposes a patch to not abort() at exit, but
STINNER Victor added the comment:
Oh, another problem: if Python is compiled in shared module, libpython3.4.so
cannot be found. LD_LIBRARY_PATH must also be copied if __cleanenv=True.
Py_ENABLE_SHARED can be checked in sysconfig to decide if the environment
variable should be copied or not.
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20614
___
___
10 matches
Mail list logo