Skip to content

Commit

Permalink
Merge branch 'main' into dask_fastjet
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Mar 28, 2023
2 parents be1e998 + 39e9ddd commit 8dc0501
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ graft fastjet-core
graft fastjet-contrib
graft pybind11
global-exclude .git .gitmodules
include LICENSE README.md pyproject.toml setup.py setup.cfg patch_fastjet_i.txt patch_clustersequence.txt
include LICENSE README.md pyproject.toml setup.py setup.cfg patch_fastjet_i.txt patch_clustersequence.txt patch_makefilein.txt
exclude .cirrus.yml
15 changes: 15 additions & 0 deletions patch_makefilein.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/Makefile.in b/Makefile.in
index a4645fd..a7b82e2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -8,11 +8,6 @@
SUBDIRS=@CONTRIB_BUILD_LIST@
SUBDIRS.all=$(SUBDIRS:=.all)

-# these will be overriden if the user specifies CXX or CXXFLAGS with configure
-# they will also be overriden by definitions in subsiduary Makefiles
-CXX=g++
-CXXFLAGS=-O2 -Wall -g
-
# get any variables defined in the contrib-wide include
-include .Makefile.inc
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ 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(
["patch", "./Makefile.in", DIR / "patch_makefilein.txt"],
cwd=FASTJET_CONTRIB,
env=env,
check=True,
)

subprocess.run(
[
"./configure",
Expand Down

0 comments on commit 8dc0501

Please sign in to comment.