Skip to content

Conversation

charris
Copy link
Member

@charris charris commented Feb 24, 2019

Backport of #13023.

There are places in distutils where we accept a single string from the user, and interpret it as a set of command line arguments.
Previously, these were passed on as a string unmodified to exec_command, and interpreted by subprocess in a platform-specific way.

Recent changes to distutils now pass a list of arguments to subprocess, meaning we have to split the strings ourselves.
While shlex.split is perfect on posix systems, it is not a good approximation of either the old or the expected behavior on windows.

Provides the building blocks needed to fix gh-12979

There are places in distutils where we accept a single string from the user, and interpret it as a set of command line arguments.
Previously, these were passed on as a string unmodified to exec_command, and interpreted by subprocess in a platform-specific way.

Recent changes to distutils now pass a list of arguments to subprocess, meaning we have to split the strings ourselves.
While `shlex.split` is perfect on posix systems, it is not a good approximation of either the old or the expected behavior on windows.

Provides the building blocks needed to fix numpygh-12979
@charris charris added this to the 1.16.2 release milestone Feb 24, 2019
@eric-wieser
Copy link
Member

eric-wieser commented Feb 24, 2019

Aw crap, I screwed that up. Will undo. Forgot that the branch was still in use, so I couldn't repurpose it for the next PR.

@eric-wieser eric-wieser force-pushed the distutils-windows-split branch from a290dd8 to 77aee9c Compare February 24, 2019 19:59
@charris charris merged commit 075aa34 into numpy:maintenance/1.16.x Feb 24, 2019
@charris
Copy link
Member Author

charris commented Feb 24, 2019

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