Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 909010a

Browse files
87charris
authored andcommitted
BUG: Fix version comparison bug on Py25.
1 parent 9ba2d53 commit 909010a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

numpy/distutils/mingw32ccompiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __init__ (self,
115115
# bad consequences, like using Py_ModuleInit4 instead of
116116
# Py_ModuleInit4_64, etc... So we add it here
117117
if get_build_architecture() == 'AMD64':
118-
if self.gcc_version < "4.":
118+
if self.gcc_version < "4.0":
119119
self.set_executables(
120120
compiler='gcc -g -DDEBUG -DMS_WIN64 -mno-cygwin -O0 -Wall',
121121
compiler_so='gcc -g -DDEBUG -DMS_WIN64 -mno-cygwin -O0 -Wall -Wstrict-prototypes',
@@ -135,7 +135,7 @@ def __init__ (self,
135135
linker_exe='g++ -mno-cygwin',
136136
linker_so='%s -mno-cygwin -mdll -static %s'
137137
% (self.linker, entry_point))
138-
elif self.gcc_version < "4.":
138+
elif self.gcc_version < "4.0":
139139
self.set_executables(compiler='gcc -mno-cygwin -O2 -Wall',
140140
compiler_so='gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes',
141141
linker_exe='g++ -mno-cygwin',

0 commit comments

Comments
 (0)