Skip to content

Commit

Permalink
setup.py: search Homebrew fftw3 on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodsf committed May 21, 2024
1 parent ceb4515 commit b907fc8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

include_dirs_st = []
library_dirs_st = []
# Search Homebrew fftw3 on macOS
if 'HOMEBREW_PREFIX' in os.environ:
include_dirs_st.append(
os.path.join(os.environ['HOMEBREW_PREFIX'], 'include'))
library_dirs_st.append(
os.path.join(os.environ['HOMEBREW_PREFIX'], 'lib'))
# This seems necessary only for Windows
if 'CONDA_PREFIX' in os.environ:
include_dirs_st.append(
Expand Down

0 comments on commit b907fc8

Please sign in to comment.