Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: Do not double-quote arguments to the command line #12413

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

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Nov 19, 2018

After the recent patch to CCompiler.spawn, the file-paths no longer need manual quoting - that's handled as needed within subprocess.

Fixes #12411


Quoting the CPython 3.6 source code, this seems to be intended:

# XXX *don't* need to be clever about quoting the
# macro value here, because we're going to avoid the
# shell at all costs when we spawn the command!

let's see if this works on posix...

@eric-wieser eric-wieser added this to the 1.16.0 release milestone Nov 19, 2018
After the recent patch to CCompiler.spawn, the file-paths no longer need manual quoting - that's handled as needed within subprocess.

Fixes numpy#12411
@eric-wieser
Copy link
Member Author

eric-wieser commented Nov 19, 2018

CI passes as much as we can expect it to. While supporting it, I'm not clear on the original motivation for the exec_command cleanup - it would be good to check that this doesn't undo any progress that was made there.

@rgommers rgommers merged commit de7036c into numpy:master Nov 19, 2018
@rgommers
Copy link
Member

LGTM, merged. Thanks Eric

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants