Skip to content

Commit 9e29a3b

Browse files
authored
fix(setuptools): remove DEBUG envvar (#527)
Dropping the DEBUG variable, it doesn't appear to be standard. Close #496. Signed-off-by: Henry Schreiner <[email protected]>
1 parent 8a0f3a2 commit 9e29a3b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/scikit_build_core/setuptools/build_cmake.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import os
43
import shutil
54
import sys
65
from pathlib import Path
@@ -138,8 +137,7 @@ def run(self) -> None:
138137
orig_macos = normalize_macos_version(orig_macos_str, arm=arm_only)
139138
config.env.setdefault("MACOSX_DEPLOYMENT_TARGET", str(orig_macos))
140139

141-
debug = int(os.environ.get("DEBUG", 0)) if self.debug is None else self.debug
142-
builder.config.build_type = "Debug" if debug else settings.cmake.build_type
140+
builder.config.build_type = "Debug" if self.debug else settings.cmake.build_type
143141

144142
builder.configure(
145143
name=dist.get_name(),

0 commit comments

Comments
 (0)