| 360 | | return distutils.core.Extension(self.output, self.files, |
| 361 | | library_dirs=library_dirs, |
| 362 | | include_dirs=include_dirs, |
| 363 | | libraries=libraries, |
| 364 | | extra_compile_args=self.extra_compile_args) |
| 365 | | |
| 366 | | def __del__(self): |
| | 360 | ext = distutils.core.Extension(self.output, self.files, |
| | 361 | library_dirs=library_dirs, |
| | 362 | include_dirs=include_dirs, |
| | 363 | libraries=libraries, |
| | 364 | extra_compile_args=self.extra_compile_args) |
| | 365 | |
| | 366 | # Keep a reference to self in the distutils Extension object, so that |
| | 367 | # after distutils.setup() is run, we can clean() the kaa Extension |
| | 368 | # object. |
| | 369 | ext._kaa_ext = self |
| | 370 | return ext |
| | 371 | |
| | 372 | |
| | 373 | def clean(self): |