mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 02:36:17 +03:00
multiprocess build creates race conditions in temp build directories
This commit is contained in:
parent
495d89b22a
commit
54d159bd42
|
@ -1,6 +1,6 @@
|
||||||
#/usr/bin/env python3
|
#/usr/bin/env python3
|
||||||
|
|
||||||
import subprocess, multiprocessing
|
import subprocess
|
||||||
import shutil
|
import shutil
|
||||||
import sys, getopt
|
import sys, getopt
|
||||||
import os
|
import os
|
||||||
|
@ -106,11 +106,10 @@ def main(op):
|
||||||
compilers[(compiler_version, 64)]),
|
compilers[(compiler_version, 64)]),
|
||||||
footer()])))
|
footer()])))
|
||||||
|
|
||||||
pool = multiprocessing.Pool()
|
results = map(run_script, scripts)
|
||||||
results = pool.map(run_script, scripts)
|
|
||||||
|
|
||||||
for (version, status, trace, err) in results:
|
for (version, status, trace, err) in results:
|
||||||
print ("Compiled %s: %s" % (version, status))
|
print ("Compiled %s: %s" % (version, status and 'ERR' or 'OK'))
|
||||||
|
|
||||||
def run_one(op):
|
def run_one(op):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user