-
Notifications
You must be signed in to change notification settings - Fork 29
[feat] New posydon-setup-env command
#714
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
base: v2.2
Are you sure you want to change the base?
Conversation
posydon-setup-env commandposydon-setup-env command
| MINICONDA_DIR = HOME / "miniconda" | ||
| MINICONDA_SCRIPT = HOME / "miniconda.sh" | ||
| ENV_NAME = "posydon_env" | ||
| DATA_DIR = "/projects/e33022/POSYDON-shared/data" |
There was a problem hiding this comment.
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}") |
There was a problem hiding this comment.
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/" |
There was a problem hiding this comment.
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
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.