10000 BLD: Fix code checking for old GCC on cygwin. · DWesl/numpy@d9c21bb · GitHub
[go: up one dir, main page]

Skip to content

Commit d9c21bb

Browse files
committed
BLD: Fix code checking for old GCC on cygwin.
I forgot the function returned bytes, not str. I also accidentally passed an extra argument.
1 parent 92eaff3 commit d9c21bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _gcc_version_less_than(obj, test_version):
258258
[cc, "-dumpversion"],
259259
stdout=subprocess.PIPE,
260260
)
261-
ver = LooseVersion(out.stdout.strip())
261+
ver = LooseVersion(out.stdout.strip().decode("ascii"))
262262
gcc_version_lt_provided = ver < test_version
263263
return gcc_version_lt_provided
264264

@@ -291,7 +291,7 @@ def build_extension(self, ext):
291291
if _is_using_gcc(self):
292292
if '-std=c99' not in ext.extra_compile_args:
293293
ext.extra_compile_args.append('-std=c99')
294-
if _is_old_gcc_on_cygwin(self, ext):
294+
if _is_old_gcc_on_cygwin(self):
295295
if '-ffixed-xmm' not in ext.extra_compile_args:
296296
ext.extra_compile_args.append(
297297
'-fno-asynchronous-unwind-tables '

0 commit comments

Comments
 (0)
0