From e4854fc8d4d49aa6a4f85946061e17aad232cbb1 Mon Sep 17 00:00:00 2001 From: David Hirschfeld Date: Wed, 26 Aug 2020 12:22:19 +1000 Subject: [PATCH] Fix shlex.split on windows --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7cd3d9b7..eeb7ea3f 100755 --- a/setup.py +++ b/setup.py @@ -37,8 +37,9 @@ def get_output(*args, **kwargs): # get the compile and link args +posix = os.name != 'nt' link_args, compile_args = [ - shlex.split(os.environ[e]) if e in os.environ else None + shlex.split(os.environ[e], posix=posix) if e in os.environ else None for e in ['GSSAPI_LINKER_ARGS', 'GSSAPI_COMPILER_ARGS'] ]