summaryrefslogtreecommitdiff
path: root/lib/spack
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-08-26 18:39:59 +0200
committerGitHub <noreply@github.com>2021-08-26 09:39:59 -0700
commit1ab6f30fdd1dd3b84e99bfbd14018a237b8095fb (patch)
tree965fe88e7f7bc72af3d25c3ec542f0d9ae83c343 /lib/spack
parent7dd3592eabe2b1ab2739a3e54c5228465c4c6ae7 (diff)
downloadspack-1ab6f30fdd1dd3b84e99bfbd14018a237b8095fb.tar.gz
spack-1ab6f30fdd1dd3b84e99bfbd14018a237b8095fb.tar.bz2
spack-1ab6f30fdd1dd3b84e99bfbd14018a237b8095fb.tar.xz
spack-1ab6f30fdd1dd3b84e99bfbd14018a237b8095fb.zip
Remove fork_context from llnl.util.lang (#25620)
This object was introduced in #18124, and was later superseded by #18205 and removed any use if the object.
Diffstat (limited to 'lib/spack')
-rw-r--r--lib/spack/llnl/util/lang.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/spack/llnl/util/lang.py b/lib/spack/llnl/util/lang.py
index 408648f1c1..ac431ecbaf 100644
--- a/lib/spack/llnl/util/lang.py
+++ b/lib/spack/llnl/util/lang.py
@@ -7,7 +7,6 @@ from __future__ import division
import functools
import inspect
-import multiprocessing
import os
import re
import sys
@@ -31,23 +30,6 @@ else:
ignore_modules = [r'^\.#', '~$']
-# On macOS, Python 3.8 multiprocessing now defaults to the 'spawn' start
-# method. Spack cannot currently handle this, so force the process to start
-# using the 'fork' start method.
-#
-# TODO: This solution is not ideal, as the 'fork' start method can lead to
-# crashes of the subprocess. Figure out how to make 'spawn' work.
-#
-# See:
-# * https://github.com/spack/spack/pull/18124
-# * https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods # noqa: E501
-# * https://bugs.python.org/issue33725
-if sys.version_info >= (3,): # novm
- fork_context = multiprocessing.get_context('fork')
-else:
- fork_context = multiprocessing
-
-
def index_by(objects, *funcs):
"""Create a hierarchy of dictionaries by splitting the supplied
set of objects on unique values of the supplied functions.