diff options
author | David Cournapeau <cournape@gmail.com> | 2009-12-03 16:02:43 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-12-03 16:02:43 +0000 |
commit | 6603acb88bd9ebf3dbcdd0f85f555cfc6f952228 (patch) | |
tree | 5aa4b13bcdc94d399a1c022064f441863c122c7d /numpy/distutils/fcompiler | |
parent | 8a0ae9f4540d8644e66668a6198faa3a6a8577a5 (diff) | |
download | numpy-6603acb88bd9ebf3dbcdd0f85f555cfc6f952228.tar.gz |
Fix version comparison when version is None.
Diffstat (limited to 'numpy/distutils/fcompiler')
-rw-r--r-- | numpy/distutils/fcompiler/nag.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/nag.py b/numpy/distutils/fcompiler/nag.py index 8a58aaae4..4aca48450 100644 --- a/numpy/distutils/fcompiler/nag.py +++ b/numpy/distutils/fcompiler/nag.py @@ -27,7 +27,7 @@ class NAGFCompiler(FCompiler): return ['-O4'] def get_flags_arch(self): version = self.get_version() - if version < '5.1': + if version and version < '5.1': return ['-target=native'] else: return [''] |