Lines Matching full:jobs
76 def __init__(self, inheritable_pipe, jobs, internal_jobs=0, makeflags=None): argument
79 self.jobs = jobs
109 def from_environ(cls, env=None, jobs=0): argument
127 jobs: The number of jobs set by the user on the command line.
141 if jobs:
174 if not jobs:
177 jobs = int(match.group(1))
178 if jobs == 1:
183 return cls(pipe, jobs, internal_jobs=1, makeflags=makeflags)
209 if self.jobs:
210 flag += f" -j{self.jobs}"
211 if self.jobs != 1 and self._inheritable_pipe is not None:
217 if self.jobs != 1 and self._inheritable_pipe is not None:
229 def __init__(self, jobs=0): argument
230 if not jobs:
231 jobs = multiprocessing.cpu_count()
232 elif jobs > select.PIPE_BUF:
233 jobs = select.PIPE_BUF
234 super().__init__(os.pipe(), jobs)
236 os.write(self._inheritable_pipe[1], b"+" * jobs)