Skip to content

Commit

Permalink
Only do CONDA_PREFIX messing around on aarch64 macos
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Sep 15, 2024
1 parent e2f0c3c commit f043160
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ def build_extensions(self):
# overridden. It is insufficient to just prepend the Homebrew
# library path to the existing LDFLAGS.
# os.environ["LDFLAGS"] = f"-L{os.environ['HOMEBREW_PREFIX']}/lib"
# Pick up a Conda environment if it is active.
# Note will still need coreutils and libtool installed with Homebrew.
if "CONDA_PREFIX" in os.environ and os.environ["CONDA_PREFIX"]:
os.environ["CXXFLAGS"] = (
os.environ.get("CXXFLAGS", "")
+ f" -I{os.environ['CONDA_PREFIX']}/include"
)
os.environ["LDFLAGS"] = (
os.environ.get("LDFLAGS", "")
+ f" -L{os.environ['CONDA_PREFIX']}/lib"
)
# Pick up a Conda environment if it is active.
# Note will still need coreutils and libtool installed with Homebrew.
if "CONDA_PREFIX" in os.environ and os.environ["CONDA_PREFIX"]:
os.environ["CXXFLAGS"] = (
os.environ.get("CXXFLAGS", "")
+ f" -I{os.environ['CONDA_PREFIX']}/include"
)
os.environ["LDFLAGS"] = (
os.environ.get("LDFLAGS", "")
+ f" -L{os.environ['CONDA_PREFIX']}/lib"
)

# RPATH is set for shared libraries in the following locations:
# * fastjet/
Expand Down

0 comments on commit f043160

Please sign in to comment.