Skip to content

Conversation

@sgossage
Copy link
Contributor

@sgossage sgossage commented Oct 3, 2025

This adds a command posydon-setup-env that takes care of setting up a conda environment 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.

@sgossage sgossage self-assigned this Oct 3, 2025
@sgossage sgossage added the enhancement New feature or request label Oct 3, 2025
@sgossage sgossage changed the title New posydon-setup-env command [feat] New posydon-setup-env command Oct 6, 2025
@sgossage sgossage changed the base branch from main to v2.1.8 October 9, 2025 05:38
MINICONDA_DIR = HOME / "miniconda"
MINICONDA_SCRIPT = HOME / "miniconda.sh"
ENV_NAME = "posydon_env"
DATA_DIR = "/projects/e33022/POSYDON-shared/data"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we come up with a user input here?

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}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is specific to Linux. We should run a test for other OS's

if IPYCONFIG_PATH.exists():
IPYCONFIG_PATH.unlink()
run("ipython profile create")
tex_path = "/software/texlive/2020/bin/x86_64-linux/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here - check for different OS's

@sgossage sgossage added the backlog This is sitting in our backlog of things to do. Action may be needed to pick back up. label Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backlog This is sitting in our backlog of things to do. Action may be needed to pick back up. enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants