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

Automatically set up GMAO_perllib #498

Closed
wants to merge 9 commits into from

Conversation

mranst
Copy link
Contributor

@mranst mranst commented Feb 7, 2025

(Re-submitted to change source branch)

This PR modifies setup.py to clone and install GMAO_perllib at the g1.0.1 tag upon pip install (see #378). Source files are cloned to src/, and installed to ~/.local/bin` (so ~/.local must exist).

I wasn’t entirely sure how to go about installing the library. I don’t think pip has much capability to elegantly support installing non-python libraries, so this basically just takes the form of a script running in setup.py that manually runs the install commands in the shell. I contemplated installing it to the python virtual environment, but that feels like it could potentially get very messy with different users having different python environment setups. I settled on installing to ~/.local/bin, since I think other swell commands are stored in that directory but I’m unsure of the most ideal location.

This uses the CMakeLists.txt from GMAO_perllib, which uses a command esma_set_this(), which I can’t figure out the nature of. From the comments, it seems to be for interactions with other libraries, so I’ve made it so that line is commented out before running.

@mranst mranst requested a review from rtodling February 7, 2025 15:06
@mranst
Copy link
Contributor Author

mranst commented Feb 7, 2025

@rtodling Should be good now

@rtodling rtodling mentioned this pull request Feb 10, 2025
25 tasks
@mranst mranst closed this Feb 14, 2025
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.

1 participant