MCPcopy Create free account
hub / github.com/apache/impala / select_cc

Function select_cc

infra/python/bootstrap_virtualenv.py:127–136  ·  view source on GitHub ↗

Return the C compiler command that should be used as a string or None if the compiler is not available

()

Source from the content-addressed store, hash-verified

125
126
127def 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
139def exec_pip_install(venv_dir, args, cc="no-cc-available", env=None):

Callers 4

install_depsFunction · 0.85
install_adls_depsFunction · 0.85
install_gcovr_depsFunction · 0.85

Calls 4

have_toolchainFunction · 0.85
toolchain_pkg_dirFunction · 0.85
joinMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected