We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f6112 commit ba49d9aCopy full SHA for ba49d9a
setup.py
@@ -95,6 +95,11 @@ def _is_truthy(value: Optional[str]) -> bool:
95
96
@staticmethod
97
def _is_cmake_arg_enabled(var: str, default: bool) -> bool:
98
+ if os.environ.get(var) is not None:
99
+ raise RuntimeError(
100
+ f"Python wheel building does not support setting '{var}' using environment variables. Use CMAKE_ARGS='-D{var}=ON' instead."
101
+ )
102
+
103
value = _cmake_args_defines().get(var, None)
104
if value is None:
105
return default
0 commit comments