(self, *args, **kwargs)
| 1050 | * `--nproc` to set he number of build threads |
| 1051 | ''' |
| 1052 | def __init__(self, *args, **kwargs): |
| 1053 | super().__init__(*args, **kwargs) |
| 1054 | self.add_argument( |
| 1055 | '--clean', |
| 1056 | default=False, |
| 1057 | help='Clean the build instead of building.', |
| 1058 | ), |
| 1059 | self.add_argument( |
| 1060 | '-j', |
| 1061 | '--nproc', |
| 1062 | default=multiprocessing.cpu_count(), |
| 1063 | type=int, |
| 1064 | help='Number of processors to use for the build.', |
| 1065 | ) |
| 1066 | self.test_results = [] |
| 1067 | |
| 1068 | def clean(self): |
| 1069 | build_dir = self.get_build_dir() |
nothing calls this directly
no test coverage detected