bpo-33042: Fix pre-initialization sys module configuration by ncoghlan · Pull Request #6157 · python/cpython (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation6 Commits10 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

ncoghlan

https://bugs.python.org/issue33042

@ncoghlan

@ncoghlan

@ncoghlan

@ncoghlan

@ncoghlan

@ncoghlan

@vstinner @serhiy-storchaka This is lower level C than I've done in quite a while, so it would be nice if one or both of you could take a look at it :)

Serhiy, a bit of extra context here is that the new code all needs to run before _Py_InitializeCore is called, since it's designed to restore the ability for embedding applications to set sys.warnoptions and sys._xoptions programmatically.

@ncoghlan

@ncoghlan

@ncoghlan

@zooba @brettcannon @ericsnowcurrently I'm attempting to fix an app embedding regression that's affecting PyInstaller, but I'm getting a failure that I don't understand for the new test case on Windows. Any chance that one of you might be able to take a look in time for 3.7.0b3?

@ncoghlan ncoghlan changed the title[WIP] bpo-33042: Fix pre-initialization sys module configuration bpo-33042: Fix pre-initialization sys module configuration

Mar 25, 2018

@ncoghlan

While I'd have preferred to wait for a review, there's a conflict between that and getting this merged in time for 3.7.0b3, so I'm going to go ahead and merge it. Reviews still welcome, I'll just need to fix any issues found in a follow-up PR.

@miss-islington

Thanks @ncoghlan for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Mar 25, 2018

@ncoghlan @miss-islington

…6157)

Co-authored-by: Nick Coghlan ncoghlan@gmail.com

@bedevere-bot

miss-islington added a commit that referenced this pull request

Mar 25, 2018

@miss-islington @ncoghlan

Co-authored-by: Nick Coghlan ncoghlan@gmail.com

@ncoghlan ncoghlan deleted the bpo-33042-restore-preinit-sys-options branch

March 30, 2018 07:43