From ac62b779b54f5b159468025dc83dd477cff329ba Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Tue, 18 Jun 2024 17:48:50 -0400 Subject: [PATCH] update andes workflow --- sphinx_docs/source/olcf-andes.rst | 36 ++++++++++++------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/sphinx_docs/source/olcf-andes.rst b/sphinx_docs/source/olcf-andes.rst index 6c68c8b..b37c803 100644 --- a/sphinx_docs/source/olcf-andes.rst +++ b/sphinx_docs/source/olcf-andes.rst @@ -14,40 +14,32 @@ then setup ``conda``: .. prompt:: bash - conda init bash + conda init + conda create --name myenv python=3.11 this will modify your `.bashrc`, adding code that is specific to andes. -Then you do: - -.. prompt:: bash - - conda create -n andes_env -y ipykernel nb_conda_kernels - conda install -n andes_env -c conda-forge yt - .. note:: - If you want to install yt from source, then you would first clone - the yt repo: - - .. prompt:: bash + The version of ``conda`` install on andes is very own, so it is best + to install all other packages using pip in your new environment. - git clone git@github.com:yt-project/yt +To activate the environment, do: - Then in the top-level ``yt/`` directory, do: - - .. prompt:: bash - - pip install -e . +.. prompt:: bash - If you have an existing yt installation, you can uninstall it first via: + source activate myenv - .. prompt:: bash +You can then install yt from source: - pip uninstall yt +.. prompt:: bash + git clone git@github.com:yt-project/yt + cd yt + pip install . -Finally, you can activate the environment as: +Each time you log in, if you want to use this environment, +you need to do: .. prompt:: bash