diff options
Diffstat (limited to 'numpy/distutils/command/config_compiler.py')
-rw-r--r-- | numpy/distutils/command/config_compiler.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/numpy/distutils/command/config_compiler.py b/numpy/distutils/command/config_compiler.py index 58cd9e0c8..89fc81c55 100644 --- a/numpy/distutils/command/config_compiler.py +++ b/numpy/distutils/command/config_compiler.py @@ -67,7 +67,9 @@ class config_fc(Command): l = [] for c in cmd_list: v = getattr(c,a) - if v is not None and v not in l: l.append(v) + if v is not None: + if not isinstance(v, str): v = v.compiler_type + if v not in l: l.append(v) if not l: v1 = None else: v1 = l[0] if len(l)>1: @@ -108,7 +110,9 @@ class config_cc(Command): l = [] for c in cmd_list: v = getattr(c,a) - if v is not None and v not in l: l.append(v) + if v is not None: + if not isinstance(v, str): v = v.compiler_type + if v not in l: l.append(v) if not l: v1 = None else: v1 = l[0] if len(l)>1: |