Skip to content

Commit

Permalink
Merge pull request #56 from aodn/InstallDoc
Browse files Browse the repository at this point in the history
Update Installation Doc
  • Loading branch information
lbesnard authored Jul 25, 2024
2 parents eb8bf58 + 3794bfb commit 3a72ab6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions docs/development/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Clone the repository
.. code-block:: bash
gh repo clone aodn/aodn_cloud_optimised``
cd aodn_cloud_optimised
Installation
------------
Expand All @@ -30,19 +31,32 @@ Requirements:
mamba activate CloudOptimisedParquet
poetry install --with dev
pre-commit install
Option 2: Create a Virtual Environment of Your Choice
.. note:: Important Note
:class: custom-note
:name: mamba-env

the conda/mamba env might have to be (re) activated after installation to have all the scripts available in the shell $PATH

Option 2: Installation using Poetry's virtual environment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Create a virtual environment of your choice and activate it:

.. code-block:: bash
curl -sSL https://install.python-poetry.org | python3 -
pip install poetry
poetry shell
poetry install --with dev
pre-commit install
#pre-commit install # should be done automatically by poetry install
.. note:: Important Note
:class: custom-note
:name: poetry-env

Using this method, the poetry virtual env will have to be (re) activated after being installed with ``poetry shell``
once in the directory

Project Pre-commit Integration
------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requirements:

Automatic Installation of Latest Wheel Release
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Run the following only if you're not planning on doing any development!
.. code-block:: bash
curl -s https://raw.githubusercontent.com/aodn/aodn_cloud_optimised/main/install.sh | bash
Expand Down

0 comments on commit 3a72ab6

Please sign in to comment.