MCPcopy Create free account
hub / github.com/numpy/numpy / main

Function main

numpy/_build_utils/gcc_build_bitness.py:9–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def main():
10 res = run(['gcc', '-v'], check=True, text=True, capture_output=True)
11 target = re.search(r'^Target: (.*)$', res.stderr, flags=re.M).groups()[0]
12 if target.startswith('i686'):
13 print('32')
14 elif target.startswith('x86_64'):
15 print('64')
16 else:
17 raise RuntimeError('Could not detect Mingw-w64 bitness')
18
19
20if __name__ == "__main__":

Callers 1

Calls 3

printFunction · 0.85
startswithMethod · 0.80
runFunction · 0.50

Tested by

no test coverage detected