Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use environment CXX to configure fastjet-contrib .Makefile.inc #276

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

matthewfeickert
Copy link
Member

@matthewfeickert matthewfeickert commented Feb 17, 2024

  • fastjet-contrib's .Makefile.inc is created at ./configure time, which means that if the environment's CXX is accessible inside of setup.py it can be passed as an argument to configure. Use this to set CXX for fastjet-contrib/.Makefile.inc and use a default value of g++ if no environment value is set.
  • As this supersedes the need for patching .Makefile.inc, which was being overwritten, remove that patch file and the .Makefile.inc patching step from setup.py.

Amends PR #275

c.f. lgray/staged-recipes#2 for an example of this being applied as a patch.

@matthewfeickert
Copy link
Member Author

Note to future awake self: Use the relevant parts of the patch you wrote in lgray/staged-recipes#2 and then just remove all of

fastjet/setup.py

Lines 104 to 109 in 0a70df4

subprocess.run(
["patch", "./.Makefile.inc", DIR / "patch_makefileinc.txt"],
cwd=FASTJET_CONTRIB,
env=env,
check=True,
)

and patch_makefileinc.txt.

@lgray lgray force-pushed the fix/correctly-use-undefine branch from b14e598 to 6c5b70e Compare February 17, 2024 14:53
@matthewfeickert matthewfeickert force-pushed the fix/correctly-use-undefine branch from 6c5b70e to 74d0b68 Compare February 17, 2024 20:19
@matthewfeickert matthewfeickert changed the title fix: Correctly use 'undefine' in patch for fastjet-contrib/.Makefile.inc fix: Use environment CXX to configure fastjet-contrib .Makefile.inc Feb 17, 2024
@matthewfeickert matthewfeickert marked this pull request as ready for review February 17, 2024 20:22
@matthewfeickert matthewfeickert force-pushed the fix/correctly-use-undefine branch from 74d0b68 to 35c33a3 Compare February 17, 2024 20:28
@matthewfeickert matthewfeickert marked this pull request as draft February 17, 2024 20:41
* fastjet-contrib's .Makefile.inc is created at ./configure time, which means
  that if the environment's CXX is accessible inside of setup.py it can be passed
  as an argument to configure. Use this to set CXX for fastjet-contrib/.Makefile.inc
  and use a default value of g++ if no environment value is set.
* As this supersedes the need for patching .Makefile.inc, which was being overwritten,
  remove that patch file and the .Makefile.inc patching step from setup.py.
@matthewfeickert matthewfeickert force-pushed the fix/correctly-use-undefine branch from 35c33a3 to b11bbda Compare February 18, 2024 22:31
@matthewfeickert matthewfeickert marked this pull request as ready for review February 18, 2024 22:38
@matthewfeickert
Copy link
Member Author

@lgray @chrispap95 I found my typo and so this is passing now and ready for review.

@matthewfeickert
Copy link
Member Author

As this was used in lgray/staged-recipes#2 and approved there I'm going to assume that Lindsey is fine with me removing the patch, as it gets overwritten anyway, and merge this. If not, we can always revert. 👍

@matthewfeickert matthewfeickert merged commit 19e0109 into main Feb 20, 2024
12 checks passed
@matthewfeickert matthewfeickert deleted the fix/correctly-use-undefine branch February 20, 2024 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants