summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_ext.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2007-05-18 17:33:15 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2007-05-18 17:33:15 +0000
commit571f16714fe9c2c744c6563d495dd0aaa47a843b (patch)
treeb6b316946dd86a21feaaaeb279a948c01eddc661 /numpy/distutils/command/build_ext.py
parenta95189e65cb5aceb3c6a6a70203ba4ae9f694cfb (diff)
downloadnumpy-571f16714fe9c2c744c6563d495dd0aaa47a843b.tar.gz
Fixed warnings on language changes.
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