Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Sep 15, 2024
1 parent 5091363 commit 16ddbe8
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,18 @@ def build_extensions(self):
# by FastJet and FastJet-contrib.
# c.f. https://github.com/scikit-hep/fastjet/issues/310
if sys.platform == "darwin":
os.environ["CXXFLAGS"] = "-I/opt/homebrew/include " + os.environ.get(
"CXXFLAGS", ""
)
os.environ["LDFLAGS"] = (
os.environ.get("LDFLAGS", "") + " -L/opt/homebrew/lib"
os.environ["CXXFLAGS"] = (
f"-I{os.environ['HOMEBREW_PREFIX']}/include "
+ os.environ.get("CXXFLAGS", "")
)
# os.environ["LDFLAGS"] = (
# os.environ.get("LDFLAGS", "")
# + f" -L{os.environ['HOMEBREW_PREFIX']}/lib"
# )
# For reasons that are unclear, the LDFLAGS need to be fully
# 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
if "CONDA_PREFIX" in os.environ and os.environ["CONDA_PREFIX"]:
os.environ["CXXFLAGS"] = (
Expand Down Expand Up @@ -135,7 +141,7 @@ def build_extensions(self):
# For reasons that are unclear, the LDFLAGS need to be fully
# overridden. It is insufficient to just prepend the Homebrew
# library path to the existing LDFLAGS.
env["LDFLAGS"] = "-L/opt/homebrew/lib"
env["LDFLAGS"] = f"-L{env['HOMEBREW_PREFIX']}/lib"
# Pick up a Conda environment if it is active
if "CONDA_PREFIX" in env and env["CONDA_PREFIX"]:
env["LDFLAGS"] = env["LDFLAGS"] + f" -L{env['CONDA_PREFIX']}/lib"
Expand Down

0 comments on commit 16ddbe8

Please sign in to comment.