summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Lee <anntzer.lee@gmail.com>2018-02-28 23:52:46 -0800
committerAntony Lee <anntzer.lee@gmail.com>2018-02-28 23:59:04 -0800
commit8da360a679a54a43e2fd01730c3f3b26afd2a8fd (patch)
tree95bbbeae65bbbf81507978904333225e0b8b6bae
parentee2059625d3f00511e6414b4d38504791f2f85f3 (diff)
downloadsetuptools-scm-8da360a679a54a43e2fd01730c3f3b26afd2a8fd.tar.gz
Don't use of shlex.split on Windows.
-rw-r--r--setuptools_scm/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools_scm/utils.py b/setuptools_scm/utils.py
index f744337..0e8a555 100644
--- a/setuptools_scm/utils.py
+++ b/setuptools_scm/utils.py
@@ -61,7 +61,7 @@ def _popen_pipes(cmd, cwd):
def do_ex(cmd, cwd='.'):
trace('cmd', repr(cmd))
- if not isinstance(cmd, (list, tuple)):
+ if os.name == "posix" and not isinstance(cmd, (list, tuple)):
cmd = shlex.split(cmd)
p = _popen_pipes(cmd, cwd)