Skip to content

Commit dbb1db1

Browse files
David Hirschfeldfrozencemetery
David Hirschfeld
authored andcommitted
Fix shlex.split on windows
1 parent dac08a8 commit dbb1db1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ def get_output(*args, **kwargs):
3737

3838

3939
# get the compile and link args
40+
posix = os.name != 'nt'
4041
link_args, compile_args = [
41-
shlex.split(os.environ[e]) if e in os.environ else None
42+
shlex.split(os.environ[e], posix=posix) if e in os.environ else None
4243
for e in ['GSSAPI_LINKER_ARGS', 'GSSAPI_COMPILER_ARGS']
4344
]
4445

0 commit comments

Comments
 (0)