summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/config_compiler.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2007-05-19 10:23:16 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2007-05-19 10:23:16 +0000
commit5c2ffbb0da2669cc15c383d378d8ff5f63fda27f (patch)
tree9ecd3861a049d5741f083a280cf9267520abfe37 /numpy/distutils/command/config_compiler.py
parent637069d6fb2a70fa86cc27f06e6857440b7a91d2 (diff)
downloadnumpy-5c2ffbb0da2669cc15c383d378d8ff5f63fda27f.tar.gz
Fix fcompiler/compiler unification warning.
Diffstat (limited to 'numpy/distutils/command/config_compiler.py')
-rw-r--r--numpy/distutils/command/config_compiler.py8
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: