Draft
Conversation
posydon-setup-env commandposydon-setup-env command
astroJeff
reviewed
Oct 16, 2025
| MINICONDA_DIR = HOME / "miniconda" | ||
| MINICONDA_SCRIPT = HOME / "miniconda.sh" | ||
| ENV_NAME = "posydon_env" | ||
| DATA_DIR = "/projects/e33022/POSYDON-shared/data" |
Contributor
There was a problem hiding this comment.
Can we come up with a user input here?
astroJeff
reviewed
Oct 16, 2025
| def install_miniconda(): | ||
| if not MINICONDA_DIR.exists(): | ||
| print("📦 Installing Miniconda...") | ||
| run(f"curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh --output {MINICONDA_SCRIPT}") |
Contributor
There was a problem hiding this comment.
This is specific to Linux. We should run a test for other OS's
astroJeff
reviewed
Oct 16, 2025
| if IPYCONFIG_PATH.exists(): | ||
| IPYCONFIG_PATH.unlink() | ||
| run("ipython profile create") | ||
| tex_path = "/software/texlive/2020/bin/x86_64-linux/" |
Contributor
There was a problem hiding this comment.
Same here - check for different OS's
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a command
posydon-setup-envthat takes care of setting up acondaenvironment with POSYDON.TODO: Intending to rework this and make it more functional for the use case where a user has already installed POSYDON with conda or git and wants to setup a conda environment with that installation. Also needs unit test coverage to be addressed.