Skip to content

Commit

Permalink
Update for setup.py
Browse files Browse the repository at this point in the history
Changed return from ctypes find_library() to append to out list. This
allows the env var to still be used.
  • Loading branch information
EricEngle-NOAA committed Feb 2, 2024
1 parent 3e48b99 commit 7815a24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from ctypes.util import find_library as ctypes_find_library
from pathlib import Path
from setuptools import setup, Extension
import configparser
from ctypes.util import find_library as ctypes_find_library
import numpy
import os
from pathlib import Path
import platform
import sys

Expand Down Expand Up @@ -31,7 +31,7 @@ def find_library(name, dirs=None):
if (sys.platform, platform.machine()) == ("darwin", "arm64"):
pass
else:
return ctypes_find_library(name)
out.append(ctypes_find_library(name))

# For Linux and macOS (Apple Silicon), we have to search ourselves.
libext = _libext_by_platform[sys.platform]
Expand Down

0 comments on commit 7815a24

Please sign in to comment.