diff options
author | Han <hangenuit@gmail.com> | 2011-10-04 14:14:07 +0200 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-10-04 11:29:32 -0600 |
commit | 909010af44d3cab2066bfe02a916a36fe1040e54 (patch) | |
tree | e987a29f1062dd57f61aef04ca9fac5b5503718f | |
parent | 9ba2d5301afdfbba3c53a117c2cc417bf04ae037 (diff) | |
download | numpy-909010af44d3cab2066bfe02a916a36fe1040e54.tar.gz |
BUG: Fix version comparison bug on Py25.
-rw-r--r-- | numpy/distutils/mingw32ccompiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py index 78457bbf0..b3aa96e6b 100644 --- a/numpy/distutils/mingw32ccompiler.py +++ b/numpy/distutils/mingw32ccompiler.py @@ -115,7 +115,7 @@ class Mingw32CCompiler(distutils.cygwinccompiler.CygwinCCompiler): # bad consequences, like using Py_ModuleInit4 instead of # Py_ModuleInit4_64, etc... So we add it here if get_build_architecture() == 'AMD64': - if self.gcc_version < "4.": + if self.gcc_version < "4.0": self.set_executables( compiler='gcc -g -DDEBUG -DMS_WIN64 -mno-cygwin -O0 -Wall', compiler_so='gcc -g -DDEBUG -DMS_WIN64 -mno-cygwin -O0 -Wall -Wstrict-prototypes', @@ -135,7 +135,7 @@ class Mingw32CCompiler(distutils.cygwinccompiler.CygwinCCompiler): linker_exe='g++ -mno-cygwin', linker_so='%s -mno-cygwin -mdll -static %s' % (self.linker, entry_point)) - elif self.gcc_version < "4.": + elif self.gcc_version < "4.0": self.set_executables(compiler='gcc -mno-cygwin -O2 -Wall', compiler_so='gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes', linker_exe='g++ -mno-cygwin', |