Skip to content

Commit

Permalink
fj-contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
jmduarte committed Nov 9, 2022
1 parent ebf60c3 commit bea61f0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "pybind11"]
path = pybind11
url = https://github.com/pybind/pybind11.git
[submodule "fastjet-contrib"]
path = fastjet-contrib
url = https://github.com/cms-externals/fastjet-contrib.git
1 change: 1 addition & 0 deletions fastjet-contrib
Submodule fastjet-contrib added at 03f2fb
12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

DIR = pathlib.Path(__file__).parent.resolve()
FASTJET = DIR / "fastjet-core"
FASTJET_CONTRIB = DIR / "fastjet-contrib"
PYTHON = DIR / "src/fastjet"
OUTPUT = PYTHON / "_fastjet_core"

Expand Down Expand Up @@ -97,6 +98,17 @@ def build_extensions(self):
subprocess.run(["make", "-j"], cwd=FASTJET, env=env, check=True)
subprocess.run(["make", "install"], cwd=FASTJET, env=env, check=True)

subprocess.run(
["./configure", f"--fastjet-config={FASTJET}/fastjet-config"],
cwd=FASTJET_CONTRIB,
env=env,
check=True,
)
subprocess.run(["make", "-j"], cwd=FASTJET_CONTRIB, env=env, check=True)
subprocess.run(
["make", "install"], cwd=FASTJET_CONTRIB, env=env, check=True
)

setuptools.command.build_ext.build_ext.build_extensions(self)


Expand Down

0 comments on commit bea61f0

Please sign in to comment.