From 5b4a7825d4345a5a07496f8eaa5bfeee93720a3b Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 16 Oct 2023 11:19:02 -0500 Subject: [PATCH] make one condition for .so --- conda_build/environ.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/conda_build/environ.py b/conda_build/environ.py index d067c68257..09f6b46b3b 100644 --- a/conda_build/environ.py +++ b/conda_build/environ.py @@ -581,9 +581,7 @@ def get_shlib_ext(host_platform): return ".dll" elif host_platform in ["osx", "darwin"]: return ".dylib" - elif host_platform.startswith("linux") or host_platform.endswith("-wasm32"): - return ".so" - elif host_platform.startswith("freebsd"): + elif host_platform.startswith(("linux", "freebsd") or host_platform.endswith("-wasm32"): return ".so" elif host_platform == "noarch": # noarch packages should not contain shared libraries, use the system