File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 13
13
* link shared library handled by 'cc -shared'
14
14
"""
15
15
16
- import os , sys , re
16
+ import os , sys , re , shlex
17
17
18
18
from distutils import sysconfig
19
19
from distutils .dep_util import newer
@@ -231,7 +231,7 @@ def runtime_library_dir_option(self, dir):
231
231
# this time, there's no way to determine this information from
232
232
# the configuration data stored in the Python installation, so
233
233
# we use this hack.
234
- compiler = os .path .basename (sysconfig .get_config_var ("CC" ). split ( " " )[0 ])
234
+ compiler = os .path .basename (shlex . split ( sysconfig .get_config_var ("CC" ))[0 ])
235
235
if sys .platform [:6 ] == "darwin" :
236
236
from distutils .util import get_macosx_target_ver , split_version
237
237
macosx_target_ver = get_macosx_target_ver ()
You can’t perform that action at this time.
0 commit comments