Skip to content

Commit 47ec024

Browse files
committed
fix: fix build on macOS
1 parent a2c3b28 commit 47ec024

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ def run(self):
489489
buildcfg.libraries.extend(extra_libraries)
490490

491491
# Override build configuration based on environment variables
492-
buildcfg.static_extension = is_envvar_on("IGRAPH_STATIC_EXTENSION")
492+
if "IGRAPH_STATIC_EXTENSION" in os.environ:
493+
buildcfg.static_extension = is_envvar_on("IGRAPH_STATIC_EXTENSION")
493494
buildcfg.use_sanitizers = building_with_sanitizers()
494495

495496
# Replaces library names with full paths to static libraries

0 commit comments

Comments
 (0)