File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2727import sys
2828import os
2929import os .path as path
30+ import shlex
3031
3132CLASSIFIERS = """\
3233 Development Status :: 5 - Production/Stable
@@ -61,7 +62,9 @@ def _find_args(pat, env):
6162library_dirs = _find_args ('-l' , 'LIBRARY_DIRS' )
6263szip_installed = 'SZIP' in os .environ
6364compress = 'NO_COMPRESS' not in os .environ
64- extra_link_args = os .environ .get ('LINK_ARGS' , '' )
65+ extra_link_args = None
66+ if "LINK_ARGS" in os .environ :
67+ extra_link_args = shlex .split (os .environ ["LINK_ARGS" ])
6568
6669
6770msg = 'Cannot proceed without the HDF4 library. Please ' \
@@ -148,7 +151,7 @@ def _find_args(pat, env):
148151 include_dirs = include_dirs ,
149152 extra_compile_args = extra_compile_args ,
150153 library_dirs = library_dirs ,
151- extra_link_args = [ extra_link_args ] ,
154+ extra_link_args = extra_link_args ,
152155 libraries = libraries ,
153156 )
154157
You can’t perform that action at this time.
0 commit comments