Skip to content

Commit 403d60c

Browse files
committed
The previous test always worked
1 parent 1aa016a commit 403d60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ def build_xas_xas(ext_modules):
540540
comp = distutils.ccompiler.get_default_compiler()
541541
if comp == "unix":
542542
import subprocess
543-
if subprocess.call("which gcc > /dev/null", shell=True) == 0:
543+
if subprocess.call("gcc -v > /dev/null 2>&1", shell=True) == 0:
544544
c_prog = "#include <stdint.h>\n int main()\n{return 0;}\n"
545545
if subprocess.call("echo '%s' | gcc -x c - " % c_prog, shell=True) == 0:
546546
c_prog = "#include <GL/gl.h>\n int main()\n{return 0;}\n"

0 commit comments

Comments
 (0)