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

Method run

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

Source from the content-addressed store, hash-verified

88
89class ExtBuild(build_ext):
90 def run(self):
91 current_dir = os.getcwd()
92 repo = os.path.dirname(current_dir)
93
94 prefix = target_dir
95 if debug:
96 prefix += '/debug'
97 else:
98 prefix += '/release'
99
100 for ext in self.extensions:
101 if isinstance(ext, CargoExtension):
102 ext.build()
103 ext.install(prefix)
104 if isinstance(ext, CopyExtension):
105 ext.copy()
106
107
108if __name__ == '__main__':

Callers 4

execMethod · 0.45
decode_videoFunction · 0.45
runMethod · 0.45
onnx_inferenceFunction · 0.45

Calls 3

installMethod · 0.80
copyMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected