diff options
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r-- | bitbake/lib/bb/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 7e81df5855..83159a6465 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -839,4 +839,12 @@ def process_profilelog(fn): | |||
839 | pout.flush() | 839 | pout.flush() |
840 | pout.close() | 840 | pout.close() |
841 | 841 | ||
842 | # | ||
843 | # Work around multiprocessing pool bugs in python < 2.7.3 | ||
844 | # | ||
845 | def multiprocessingpool(*args, **kwargs): | ||
846 | if sys.version_info < (2, 7, 3): | ||
847 | return bb.compat.Pool(*args, **kwargs) | ||
848 | else: | ||
849 | return multiprocessing.pool.Pool(*args, **kwargs) | ||
842 | 850 | ||