(self)
| 88 | |
| 89 | class 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 | |
| 108 | if __name__ == '__main__': |
no test coverage detected