Skip to content
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 and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-34812: subprocess._args_from_interpreter_flags(): add isolated #10675

Merged
merged 2 commits into from Nov 23, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 23, 2018

The "-I" command line option (enable isolated mode) is now also
copied by the multiprocessing and distutils modules when spawning
child processes. Previously, only -E and -s options (enabled by -I)
were copied.

subprocess._args_from_interpreter_flags() now copies the -I flag.

https://bugs.python.org/issue34812

The "-I" command line option (run Python in isolated mode) is now
also copied by the multiprocessing and distutils modules when
spawning child processes. Previously, only -E and -s options (enabled
by -I) were copied.

subprocess._args_from_interpreter_flags() now copies the -I flag.
@vstinner vstinner added the type-security A security issue label Nov 23, 2018
@miss-islington
Copy link
Contributor

miss-islington commented Nov 23, 2018

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

@vstinner vstinner deleted the args_from_interpreter branch Nov 23, 2018
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 23, 2018
…ythonGH-10675)

The "-I" command line option (run Python in isolated mode) is now
also copied by the multiprocessing and distutils modules when
spawning child processes. Previously, only -E and -s options (enabled
by -I) were copied.

subprocess._args_from_interpreter_flags() now copies the -I flag.
(cherry picked from commit 9de3632)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
@bedevere-bot
Copy link

bedevere-bot commented Nov 23, 2018

GH-10684 is a backport of this pull request to the 3.7 branch.

@miss-islington
Copy link
Contributor

miss-islington commented Nov 23, 2018

Sorry, @vstinner, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 9de363271519e0616f4a7b59427057c4810d3acc 3.6

@bedevere-bot
Copy link

bedevere-bot commented Nov 23, 2018

GH-10688 is a backport of this pull request to the 3.6 branch.

miss-islington added a commit that referenced this pull request Nov 23, 2018
…H-10675)

The "-I" command line option (run Python in isolated mode) is now
also copied by the multiprocessing and distutils modules when
spawning child processes. Previously, only -E and -s options (enabled
by -I) were copied.

subprocess._args_from_interpreter_flags() now copies the -I flag.
(cherry picked from commit 9de3632)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
vstinner added a commit that referenced this pull request Nov 23, 2018
…H-10675) (GH-10688)

The "-I" command line option (run Python in isolated mode) and -X
options (like -X faulthandler) are now also copied by the
multiprocessing and distutils modules when spawning child processes.
Previously, only -E and -s options (enabled by -I) were copied.

subprocess._args_from_interpreter_flags() now copies the -I flag
and options from sys._xoptions like -X dev.

(cherry picked from commit 9de3632)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-security A security issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants