Skip to content
NOAA-GSLPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

rheos

This repository is in active development.

Developer Setup

  1. If you do not already have a conda installation you want to reuse, install the Miniforge conda appropriate for your system (Linux aarch64 shown here), ideally not your git clone:

    wget https://github.com/conda-forge/miniforge/releases/download/26.7.2-0/Miniforge3-Linux-aarch64.sh
    bash Miniforge3-Linux-aarch64.sh -bfp /your/conda/path
    rm Miniforge3-Linux-aarch64.sh
    
  2. Activate your conda's base environment:

    . /your/conda/path/etc/profile.d/conda.sh
    conda activate base
    
  3. Install the condev package into your conda's base environment.

    conda install -y maddenp::condev
    

    If you cannot or do not want to install this package into your base environment, you can install it into a custom environment, e.g.:

    conda create -y -n condev maddenp::condev
    conda activate condev
    

    Hereafter, activate this custom environment instead of base for rheos work.

  4. In the rheos git clone root, create and enter the development shell:

    make devshell
    

You will now be inside a shell with the DEV-rheos environment activate. Note that:

  • The code under src/rheos is live-linked into the environment, such that any code changes take immediate local effect.
  • All runtime and test packages are available, so make targets like make format and make test -- which will also be executed during package build and by CI -- function correctly.
  • You can simply exit the shell to return to your previous shell.
  • Future invocations of make devshell will be much faster since the development environment will already exist.
  • If you make changes to files under recipe/ and so need to rebuild the development environment, exit the shell, run conda env remove -y -n DEV-rheos, then run make devshell again. The recipe/meta.json file should be refreshed based on the current contents of recipe/meta.yaml, and you should commit these changes.
  • If you need multiple development environments, you can precede make devshell with DEV_ENV_PREFIX=<name>, e.g. DEV_ENV_PREFIX=FOO will create (or activate if already created) development environment FOO-rheos.
  • You can run conda clean --all --yes to reclaim disk space by purging unused cached packages.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages