From 571f16714fe9c2c744c6563d495dd0aaa47a843b Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Fri, 18 May 2007 17:33:15 +0000 Subject: Fixed warnings on language changes. --- numpy/distutils/command/build_ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/distutils/command/build_ext.py') 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 -- cgit v1.2.1