fix(frontend-python): raise error when dataflow is enabled in macOS instead of crashing

This commit is contained in:
Umut
2023-06-21 15:41:56 +02:00
parent fb0e2025fa
commit a3ae3ed86c

View File

@@ -2,6 +2,7 @@
Declaration of `Configuration` class.
"""
import platform
from copy import deepcopy
from enum import Enum
from pathlib import Path
@@ -204,6 +205,10 @@ class Configuration:
message = "Insecure key cache cannot be enabled without specifying its location"
raise RuntimeError(message)
if platform.system() == "Darwin" and self.dataflow_parallelize: # pragma: no cover
message = "Dataflow parallelism is not available in macOS"
raise RuntimeError(message)
def __check_fork_consistency():
hints_init = get_type_hints(Configuration.__init__)