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

Package mg5amcnlo dependencies #3

Open
32 of 43 tasks
matthewfeickert opened this issue Nov 7, 2024 · 3 comments
Open
32 of 43 tasks

Package mg5amcnlo dependencies #3

matthewfeickert opened this issue Nov 7, 2024 · 3 comments
Assignees

Comments

@matthewfeickert
Copy link
Member

matthewfeickert commented Nov 7, 2024

As noted in mg5amcnlo/mg5amcnlo#156 mg5amcnlo vendors lots of software without including their licenses and also has multiple external dependencies.

All of these would need to be packaged on conda-forge to realistically package mg5amcnlo.

Vendored code

External dependencies

From https://github.com/mg5amcnlo/HEPToolsInstallers:

Dependencies of dependencies

@APN-Pucky
Copy link

APN-Pucky commented Nov 24, 2024

FYI, gentoo science has cuttools split of for openloops, mcfm, ... https://github.com/gentoo/sci/blob/master/sci-physics/cuttools/cuttools-1.9.3-r1.ebuild
It is a bit of a mess to get unbundle included libraries. Another similar hep packaging project to this is https://github.com/andriish/HEPrpms if you need a reference for some package.

@APN-Pucky
Copy link

I am curious how you want to get madgraph to run the first initial required run? Is it something that conda supports?

MadGraph needs to generate Template/LO/Source/make_opts which is done
automatically at startup. This needs to be done during setup (or with
root access)

from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=madgraph and gentoo does something similar https://github.com/gentoo/sci/blob/20a07b35603efba2ab1ac0310e4604506f51ed91/sci-physics/madgraph5/madgraph5-3.5.3.ebuild#L76 or is this no longer needed (there was some effort to make madgraph more packaging friendly, but i don't know of the outcome)

@matthewfeickert
Copy link
Member Author

matthewfeickert commented Dec 6, 2024

I am curious how you want to get madgraph to run the first initial required run? Is it something that conda supports?

MadGraph needs to generate Template/LO/Source/make_opts which is done
automatically at startup. This needs to be done during setup (or with
root access)

from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=madgraph

@APN-Pucky When I containerized it a few years ago (https://github.com/scailfin/MadGraph5_aMC-NLO) I just did

echo "exit" | mg5_aMC

and while I haven't thought about this much I would assume that in the build stage for conda-forge I would just make sure that the required directory structure existed under $PREFIX such that $PREFIX/MG5_aMC/bin/mg5_aMC existed (and would be symlinked to $PREFIX/bin/mg5_aMC) and then just do

echo "exit" | $PREFIX/bin/mg5_aMC

so that the $PREFIX/MG5_aMC/Template/ directory structure existed. conda-build knows how to go through, discover, and correct all the paths of everything under $PREFIX so you don't have to manually do that to make sure that the paths in Template/LO/Source/make_opts are pointing to paths on the build machine that don't exist.

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

No branches or pull requests

2 participants