MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / build

Method build

flow-python/setup.py:60–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 self.features = features
59
60 def build(self):
61 command = ['cargo', 'build', '-p', self.target]
62 if len(self.features) != 0:
63 command.append('--features')
64 command.append(' '.join(self.features))
65 if not debug:
66 command.append('--release')
67 sp.check_call(command)
68
69 def install(self, prefix):
70 copy_file('{}/{}'.format(prefix, self.src), 'megflow/{}'.format(self.dst))

Callers 5

execMethod · 0.45
execMethod · 0.45
execMethod · 0.45
runMethod · 0.45
newMethod · 0.45

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected