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 6804284 commit 69c76e6Copy full SHA for 69c76e6
setup.py
@@ -170,7 +170,7 @@ def write_to_python_file(cls, path: str) -> None:
170
# set to a non-empty value, the build type is Debug. Otherwise, the build type
171
# is Release.
172
def get_build_type(is_debug=None) -> str:
173
- debug = int(os.environ.get("DEBUG", 0)) if is_debug is None else is_debug
+ debug = int(os.environ.get("DEBUG", 0) or 0) if is_debug is None else is_debug
174
cfg = "Debug" if debug else "Release"
175
return cfg
176
0 commit comments