From ca72d6a9eb4950c21988872f9cb28eae236829d7 Mon Sep 17 00:00:00 2001 From: AI-Pranto Date: Fri, 12 Jun 2020 09:17:10 +0600 Subject: [PATCH 1/6] update quick install docs --- docs/source/quickinstall.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/source/quickinstall.rst b/docs/source/quickinstall.rst index def7ab9226..c7eab0097d 100644 --- a/docs/source/quickinstall.rst +++ b/docs/source/quickinstall.rst @@ -22,11 +22,16 @@ you have `conda` installed on your system, OpenMC can be installed via the conda config --add channels conda-forge -OpenMC can then be installed with: +To list the versions of OpenMC that are available to install, in your terminal window or an Anaconda Prompt, run: +.. code-block:: sh + + conda search openmc + +Specific version of OpenMC can then be installed with: .. code-block:: sh - conda install openmc + conda install openmc=0.X.0 python=3.X -------------------------------- Installing on Ubuntu through PPA From 59526fb5dd5dbbf692fb992cd33d6dd7d1d557b1 Mon Sep 17 00:00:00 2001 From: Pranto Date: Fri, 12 Jun 2020 13:24:35 +0600 Subject: [PATCH 2/6] Small change --- docs/source/quickinstall.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/quickinstall.rst b/docs/source/quickinstall.rst index c7eab0097d..f625864e84 100644 --- a/docs/source/quickinstall.rst +++ b/docs/source/quickinstall.rst @@ -23,6 +23,7 @@ you have `conda` installed on your system, OpenMC can be installed via the conda config --add channels conda-forge To list the versions of OpenMC that are available to install, in your terminal window or an Anaconda Prompt, run: + .. code-block:: sh conda search openmc From 5cd6abbcc9fccface2dafaefb0b5056bac94c342 Mon Sep 17 00:00:00 2001 From: Pranto Date: Tue, 16 Jun 2020 08:03:28 +0600 Subject: [PATCH 3/6] Add note --- docs/source/quickinstall.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/source/quickinstall.rst b/docs/source/quickinstall.rst index f625864e84..6ca1d3ac59 100644 --- a/docs/source/quickinstall.rst +++ b/docs/source/quickinstall.rst @@ -22,17 +22,19 @@ you have `conda` installed on your system, OpenMC can be installed via the conda config --add channels conda-forge -To list the versions of OpenMC that are available to install, in your terminal window or an Anaconda Prompt, run: +To list the versions of OpenMC that are available on `conda-forge` channel to install, in your terminal window or an Anaconda Prompt, run: .. code-block:: sh conda search openmc -Specific version of OpenMC can then be installed with: +OpenMC can then be installed with: .. code-block:: sh conda install openmc=0.X.0 python=3.X + +.. note:: Replace ``python=3.X`` with ``python=2.7`` if using legacy Python2. ``openmc=0.X.0`` is the package and version you want to install. -------------------------------- Installing on Ubuntu through PPA From 6811f0c406dd74fffb66e8219da331df656decf2 Mon Sep 17 00:00:00 2001 From: Pranto Date: Tue, 16 Jun 2020 19:11:40 +0600 Subject: [PATCH 4/6] Update docs/source/quickinstall.rst I was thinking about creating a new env also. Thanks for the suggestion. Co-authored-by: Paul Romano --- docs/source/quickinstall.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/source/quickinstall.rst b/docs/source/quickinstall.rst index 6ca1d3ac59..4932182b0a 100644 --- a/docs/source/quickinstall.rst +++ b/docs/source/quickinstall.rst @@ -32,9 +32,14 @@ OpenMC can then be installed with: .. code-block:: sh - conda install openmc=0.X.0 python=3.X + conda install -n openmc-env openmc -.. note:: Replace ``python=3.X`` with ``python=2.7`` if using legacy Python2. ``openmc=0.X.0`` is the package and version you want to install. +This will install OpenMC in a conda environment called `openmc-env`. To activate +the environment, run: + +.. code-block:: sh + + conda activate openmc-env -------------------------------- Installing on Ubuntu through PPA From ad0d31a54a2907438cdb5e6682a8d09e762cf27f Mon Sep 17 00:00:00 2001 From: Pranto Date: Tue, 16 Jun 2020 19:13:15 +0600 Subject: [PATCH 5/6] Update docs/source/quickinstall.rst Looks good Co-authored-by: Paul Romano --- docs/source/quickinstall.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/quickinstall.rst b/docs/source/quickinstall.rst index 4932182b0a..6e424761d8 100644 --- a/docs/source/quickinstall.rst +++ b/docs/source/quickinstall.rst @@ -22,7 +22,8 @@ you have `conda` installed on your system, OpenMC can be installed via the conda config --add channels conda-forge -To list the versions of OpenMC that are available on `conda-forge` channel to install, in your terminal window or an Anaconda Prompt, run: +To list the versions of OpenMC that are available on the `conda-forge` channel, +in your terminal window or an Anaconda Prompt run: .. code-block:: sh From 0d3c4838cbf1e1b101ea62dfffa1d4cbc4fbc940 Mon Sep 17 00:00:00 2001 From: Pranto Date: Tue, 16 Jun 2020 20:08:42 +0600 Subject: [PATCH 6/6] Update docs/source/quickinstall.rst Oh my God! How can I miss this! Thanks. Co-authored-by: Paul Romano --- docs/source/quickinstall.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/quickinstall.rst b/docs/source/quickinstall.rst index 6e424761d8..e45c552af0 100644 --- a/docs/source/quickinstall.rst +++ b/docs/source/quickinstall.rst @@ -33,7 +33,7 @@ OpenMC can then be installed with: .. code-block:: sh - conda install -n openmc-env openmc + conda create -n openmc-env openmc This will install OpenMC in a conda environment called `openmc-env`. To activate the environment, run: