Return the C compiler command that should be used as a string or None if the compiler is not available
()
| 125 | |
| 126 | |
| 127 | def select_cc(): |
| 128 | '''Return the C compiler command that should be used as a string or None if the |
| 129 | compiler is not available ''' |
| 130 | # Use toolchain gcc for ABI compatibility with other toolchain packages, e.g. |
| 131 | # Kudu/kudu-python |
| 132 | if not have_toolchain(): return None |
| 133 | toolchain_gcc_dir = toolchain_pkg_dir("gcc") |
| 134 | cc = os.path.join(toolchain_gcc_dir, "bin/gcc") |
| 135 | if not os.path.exists(cc): return None |
| 136 | return cc |
| 137 | |
| 138 | |
| 139 | def exec_pip_install(venv_dir, args, cc="no-cc-available", env=None): |
no test coverage detected