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

Class ExtBuild

flow-python/setup.py:89–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected