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

Method dist_compile

numpy/distutils/tests/test_ccompiler_opt.py:56–68  ·  view source on GitHub ↗
(self, sources, flags, **kwargs)

Source from the content-addressed store, hash-verified

54 """).format(self.cc_march, self.cc_name, self.report())
55
56 def dist_compile(self, sources, flags, **kwargs):
57 assert(isinstance(sources, list))
58 assert(isinstance(flags, list))
59 if self.fake_trap_files:
60 for src in sources:
61 if re.match(self.fake_trap_files, src):
62 self.dist_error("source is trapped by a fake interface")
63 if self.fake_trap_flags:
64 for f in flags:
65 if re.match(self.fake_trap_flags, f):
66 self.dist_error("flag is trapped by a fake interface")
67 # fake objects
68 return zip(sources, [' '.join(flags)] * len(sources))
69
70 def dist_info(self):
71 return FakeCCompilerOpt.fake_info

Callers

nothing calls this directly

Calls 2

dist_errorMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected