Skip to content

Commit

Permalink
Check if LIBDIR is None
Browse files Browse the repository at this point in the history
  • Loading branch information
rmjarvis committed Oct 17, 2024
1 parent 023c22a commit 0cbe339
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,11 @@ def finalize_options(self):
super().finalize_options()

self.include_dirs.append('include')
self.library_dirs.append(sysconfig.get_config_var('LIBDIR'))

# Add the system libdir if it exists.
libdir = sysconfig.get_config_var('LIBDIR')
if libdir is not None:
self.library_dirs.append(libdir)

# Add pybind11's include dir
# GalSim has a whole long thing for this.
Expand Down

0 comments on commit 0cbe339

Please sign in to comment.