summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_ext.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/command/build_ext.py')
-rw-r--r--numpy/distutils/command/build_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/command/build_ext.py b/numpy/distutils/command/build_ext.py
index 17e60e1ab..78e360ba6 100644
--- a/numpy/distutils/command/build_ext.py
+++ b/numpy/distutils/command/build_ext.py
@@ -138,7 +138,7 @@ class build_ext (old_build_ext):
ext_language = 'f77'
else:
ext_language = 'c' # default
- if l and l!=ext_language:
+ if l and l!=ext_language and ext.language:
log.warn('resetting extension %r language from %r to %r.' % (ext.name,l,ext_language))
ext.language = ext_language
# global language