We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aa016a commit 403d60cCopy full SHA for 403d60c
setup.py
@@ -540,7 +540,7 @@ def build_xas_xas(ext_modules):
540
comp = distutils.ccompiler.get_default_compiler()
541
if comp == "unix":
542
import subprocess
543
- if subprocess.call("which gcc > /dev/null", shell=True) == 0:
+ if subprocess.call("gcc -v > /dev/null 2>&1", shell=True) == 0:
544
c_prog = "#include <stdint.h>\n int main()\n{return 0;}\n"
545
if subprocess.call("echo '%s' | gcc -x c - " % c_prog, shell=True) == 0:
546
c_prog = "#include <GL/gl.h>\n int main()\n{return 0;}\n"
0 commit comments