[issue1602133] non-framework python fails to define os.environ properly
Roundup Robot added the comment: New changeset 864b9836dae6 by Ronald Oussoren in branch '2.7': Issue #1602133: 'environ' is not really available with shared libraries on OSX http://hg.python.org/cpython/rev/864b9836dae6 New changeset ea9fd9c9c677 by Ronald Oussoren in branch '3.2': Issue #1602133: 'environ' is not really available with shared libraries on OSX http://hg.python.org/cpython/rev/ea9fd9c9c677 New changeset 106d1d79c853 by Ronald Oussoren in branch '3.3': Issue #1602133: 'environ' is not really available with shared libraries on OSX (merge from 3.2) http://hg.python.org/cpython/rev/106d1d79c853 New changeset b41e3e2bd4cc by Ronald Oussoren in branch 'default': Issue #1602133: 'environ' is not really available with shared libraries on OSX (merge from 3.3) http://hg.python.org/cpython/rev/b41e3e2bd4cc -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602133] non-framework python fails to define os.environ properly
Changes by Ronald Oussoren ronaldousso...@mac.com: -- stage: commit review - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602133] non-framework python fails to define os.environ properly
Ronald Oussoren added the comment: The patch didn't work for me because I manually applied and missed a bit. The patches fixes https://bitbucket.org/ronaldoussoren/py2app/issue/81 for me, and the environ(7) manpage also indicates that the call to _NSEnvironment is needed in shared libraries. I've attached a slightly different version of the patch that only enabled the _NSGetEnvironment path for shared library builds (--enable-shared and --enable-framework) and doesn't change anything for the default static builds. Ned: I think this is a bugfix and should be merged into all active branches. Do you agree? If so, I'll apply the patch. -- nosy: +ned.deily versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602133] non-framework python fails to define os.environ properly
Ned Deily added the comment: Ronald: the patch? -- nosy: -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602133] non-framework python fails to define os.environ properly
Changes by Ronald Oussoren ronaldousso...@mac.com: Added file: http://bugs.python.org/file28726/1602133.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602133] non-framework python fails to define os.environ properly
Ned Deily added the comment: LGTM and I agree that it should be considered a bug fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602133] non-framework python fails to define os.environ properly
Ronald Oussoren added the comment: I appear to be running into this as well in py2app, with the current 2.7 tree and a --enable-shared build py2app's updates to the environment (with setenv from C code) won't be seen by Python, even though Python is initialized after the call to setenv. The patch doesn't work for me though: with the patch the build fails because os.environ no longer contains 'PATH'. I'm looking into this issue. The basic idea of the patch seems sane, both posixmodule.c and crt_externs.h mention that the call is needed for shared libraries. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602133] non-framework python fails to define os.environ properly
Dan Colish dcol...@gmail.com added the comment: I can also confirm this patch is required to build py2cairo on OSX with Python2.7.2 when --enable-framework is not used. -- nosy: +dcolish ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602133] non-framework python fails to define os.environ properly
Changes by Éric Araujo mer...@netwok.org: -- stage: - commit review title: non-framework built python fails to define environ properly - non-framework python fails to define os.environ properly versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com