Lines Matching +full:run +full:- +full:parallel
25 return subprocess.run(
35 print("--- STDOUT ---")
37 print("--- STDERR ---")
39 print("---- END ----")
49 opt = f'--{name}'
54 return -1
58 opt = f'--{name}'
70 if pos == len(args) - 1:
104 infile = open(filename, encoding='utf-8')
119 cmd = [python, '-c',
140 with open(scriptfile, 'w', encoding='utf-8') as outfile:
148 # We use an out-of-tree build (instead of srcdir).
149 builddir = os.path.join(outdir, 'python-build')
152 # Run configure.
158 ensure_opt(cmd, 'cache-file', os.path.join(outdir, 'python-config.cache'))
159 prefix = os.path.join(outdir, 'python-installation')
168 # this test is most often run as part of the whole suite with a lot
169 # of other tests running in parallel, from 1-2 vCPU systems up to
171 parallel = f'-j{cores*2//3}'
173 parallel = '-j2'
176 print(f'building python {parallel=} in {builddir}...')
178 # Out-of-tree builds require a clean srcdir.
179 _run_quiet([MAKE, '-C', srcdir, 'clean'])
180 _run_quiet([MAKE, '-C', builddir, parallel])
184 _run_quiet([MAKE, '-C', builddir, 'install'])
196 # Use -E to ignore PYTHONSAFEPATH
197 _run_quiet([python, '-E', FREEZE, '-o', outdir, scriptfile], outdir)
198 _run_quiet([MAKE, '-C', os.path.dirname(scriptfile)])
205 def run(executable): function