19
19
from numpy .distutils .compat import get_exception
20
20
from numpy .distutils .exec_command import filepath_from_subprocess_output
21
21
from numpy .distutils .misc_util import cyg2win32 , is_sequence , mingw32 , \
22
- quote_args , get_num_build_jobs , \
22
+ get_num_build_jobs , \
23
23
_commandline_dep_string
24
24
25
25
# globals for parallel build management
@@ -772,8 +772,13 @@ def new_compiler (plat=None,
772
772
773
773
_distutils_gen_lib_options = gen_lib_options
774
774
def gen_lib_options (compiler , library_dirs , runtime_library_dirs , libraries ):
775
- library_dirs = quote_args (library_dirs )
776
- runtime_library_dirs = quote_args (runtime_library_dirs )
775
+ # the version of this function provided by CPython allows the following
776
+ # to return lists, which are unpacked automatically:
777
+ # - compiler.runtime_library_dir_option
778
+ # our version extends the behavior to:
779
+ # - compiler.library_dir_option
780
+ # - compiler.library_option
781
+ # - compiler.find_library_file
777
782
r = _distutils_gen_lib_options (compiler , library_dirs ,
778
783
runtime_library_dirs , libraries )
779
784
lib_opts = []
@@ -793,11 +798,6 @@ def gen_lib_options(compiler, library_dirs, runtime_library_dirs, libraries):
793
798
if _m is not None :
794
799
setattr (_m , 'gen_lib_options' , gen_lib_options )
795
800
796
- _distutils_gen_preprocess_options = gen_preprocess_options
797
- def gen_preprocess_options (macros , include_dirs ):
798
- include_dirs = quote_args (include_dirs )
799
- return _distutils_gen_preprocess_options (macros , include_dirs )
800
- ccompiler .gen_preprocess_options = gen_preprocess_options
801
801
802
802
##Fix distutils.util.split_quoted:
803
803
# NOTE: I removed this fix in revision 4481 (see ticket #619), but it appears
0 commit comments