Skip to content

Commit

Permalink
Another update for setup.py 2
Browse files Browse the repository at this point in the history
  • Loading branch information
EricEngle-NOAA committed Jul 31, 2024
1 parent 13a3108 commit bdc9a6d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ def find_library(name, dirs=None, static=False):
libext = _libext_by_platform[sys.platform]
libext = ".a" if static else libext
if dirs is None:
print(os.environ["CONDA_PREFIX"])
if 'CONDA_PREFIX' in os.environ:
dirs = [os.environ["CONDA_PREFIX"]]
if sys.platform == "darwin":
libext = ".so" # If in conda and macos, then use ".so"
#if sys.platform == "darwin":
# libext = ".so" # If in conda and macos, then use ".so"
else:
dirs = ["/usr/local", "/sw", "/opt", "/opt/local", "/opt/homebrew", "/usr"]
if os.environ.get("LD_LIBRARY_PATH"):
Expand Down

0 comments on commit bdc9a6d

Please sign in to comment.