Skip to content

Commit

Permalink
was none of this needed?
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Sep 17, 2024
1 parent b722ae6 commit b3e2ae3
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import os
import pathlib
import platform
import shutil
import subprocess
import sys
Expand Down Expand Up @@ -60,28 +59,6 @@ def build_extensions(self):
cwd=FASTJET,
)

# Inject the required CXXFLAGS and LDFLAGS for building on
# aarch64 macOS. As Homebrew can not be used at any part in a
# conda-forge build, guard against this by checking for the
# conda-build environment variable.
# This is a bad hack, and will be alleviated if CMake can be used
# by FastJet and FastJet-contrib.
# c.f. https://github.com/scikit-hep/fastjet/issues/310
if (
sys.platform == "darwin"
and platform.processor() == "arm"
and "HOMEBREW_PREFIX" in os.environ
and "CONDA_BUILD" not in os.environ
):
os.environ["CXXFLAGS"] = (
os.environ.get("CXXFLAGS", "")
+ f" -I{os.environ['HOMEBREW_PREFIX']}/include"
)
os.environ["LDFLAGS"] = (
os.environ.get("LDFLAGS", "")
+ f" -L{os.environ['HOMEBREW_PREFIX']}/lib"
)

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

0 comments on commit b3e2ae3

Please sign in to comment.