summaryrefslogtreecommitdiff
path: root/numpy/distutils/_shell_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* DEV: cleanup imports and some assignments (from LGTM)mattip2019-03-171-2/+2
|
* MAINT: Add functions to parse shell-strings in the platform-native wayEric Wieser2019-02-231-0/+91
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