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

Method __init__

numpy/distutils/system_info.py:1292–1307  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1290 return None
1291
1292 def __init__(self):
1293 mklroot = self.get_mkl_rootdir()
1294 if mklroot is None:
1295 system_info.__init__(self)
1296 else:
1297 from .cpuinfo import cpu
1298 if cpu.is_Itanium():
1299 plt = '64'
1300 elif cpu.is_Intel() and cpu.is_64bit():
1301 plt = 'intel64'
1302 else:
1303 plt = '32'
1304 system_info.__init__(
1305 self,
1306 default_lib_dirs=[os.path.join(mklroot, 'lib', plt)],
1307 default_include_dirs=[os.path.join(mklroot, 'include')])
1308
1309 def calc_info(self):
1310 lib_dirs = self.get_lib_dirs()

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

get_mkl_rootdirMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected