From 1dd5fc0fc133f2b8d329ae68929bd3c6c1c5fa7c Mon Sep 17 00:00:00 2001 From: Brian Dobbins Date: Tue, 2 Mar 2021 15:47:17 -0700 Subject: [PATCH] Modified setup.py's EXTRA_OBJECTS setting to use an empty set ([] vs '') when the variable isn't found in the check. The empty value is problematic for distutils, but NCAR's compiler wrappers eliminate the empty space, whereas directly calling the compilers does not - this leads to build problems on other systems. (Usually hidden because it's installed via Conda in most cases.) I'm very bad at python, so my terminology above is likely incorrect, but I'm quite sure the diagnosis is right. :-) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a6daa90..8701a55 100644 --- a/setup.py +++ b/setup.py @@ -357,7 +357,7 @@ def set_curl_libs(): try: EXTRA_OBJECTS = [os.environ["EXTRA_OBJECTS"]] except: - EXTRA_OBJECTS = '' + EXTRA_OBJECTS = [] # # Done with environment variables.