[issue14956] custom PYTHONPATH may break apps embedding Python

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: This issue has been fixed in 36763 by the PEP 587 which provides a new "Isolated Configuration" and a way to tune the Python configuration without impacting subprocesses. For example, the Isolated Configuration ignores environment variables by default. In

[issue14956] custom PYTHONPATH may break apps embedding Python

2018-10-28 Thread Romain Geissler
Romain Geissler added the comment: Hi, Just updating this 6 year old bug report. The last comment says it's not possible to ignore environment when using the C-API. I don't know back then, but today it is possible. I have just built gdb 8.2 against python 3.7.1, and patched gdb with this

[issue14956] custom PYTHONPATH may break apps embedding Python

2013-08-01 Thread Kevin Harms
Kevin Harms added the comment: As far as I can tell, this issue is not resolved. It would be very nice for the C API to have the equivalent for -E for security reasons. I would like to make a setgid binary and do not want users to be able to set PYTHON* variables to force loading of custom

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I fully agree with site.py/os.py/spam.py but I find it offtopic for this Issue. I don’t understand this message :) There is nothing to agree with or judge on or off-topic; I was trying to understand the root of the bug and really asking you

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Jan Kratochvil
Jan Kratochvil jan.kratoch...@redhat.com added the comment: While it should be documented this is not only a docs issue. It should be solved in some way during runtime. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No it shouldn't. As mentioned in the Fedora thread you linked, this is no different than the user setting LD_LIBRARY_PATH to something that screws up a system installed program. -- ___

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: If we don't expose the mechanism behind -E to embedding applications via the C API, then a non-docs change may be needed. However, writing (or at least trying to write) the relevant docs is a good way to check whether or not that is the case.

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: custom PYTHONPATH breaks Python-embedded apps - custom PYTHONPATH may break apps embedding Python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think it is up to each embedding application to decide if it wants to respect the environment variables or not. I don't think that's a decision that core can make. Now, if we aren't providing an easy way for an embedding application

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-29 Thread Jan Kratochvil
Jan Kratochvil jan.kratoch...@redhat.com added the comment: I fully agree with site.py/os.py/spam.py but I find it offtopic for this Issue. I do not find too important if some unsetenv/setenv gets called by the app or by libpython. But the rules should apply for every embedded app the same,

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: An informational PEP sounds like exactly what I said: each application needs to decide. The PEP would provide the information on which to base that decision, and suggestions for how to do it. An informational PEP on best practices for

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: It wouldn't be a PEP, it would be an addition to the embedding docs: http://docs.python.org/extending/embedding.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: For the more general breakage due to PYTHONHOME and PYTHONPATH, yeah, global environment variables are bad, particularly when an OS relies on tools written in (or embedding) Python. That's the reason virtualenv (and 3.3's forthcoming venv)

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-29 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956 ___ ___ Python-bugs-list