Skip to content

Add a yaml file describing the mpas_tools dev environment - #418

Merged
xylar merged 3 commits into
MPAS-Dev:masterfrom
xylar:add_dev_env_yaml
May 1, 2021
Merged

xylar merged 3 commits into
MPAS-Dev:masterfrom
xylar:add_dev_env_yaml

Conversation

@xylar

@xylar xylar commented May 1, 2021 •

Copy link
Copy Markdown
Collaborator

This will let developers install mpas_tools into a conda environment in a way that points to the local branch. This way, changes can easily be made to the mpas_tools package on the fly while testing the package in exactly the way a user or downstream package would. This will be especially useful for testing changes in mpas_tools and packages that depend on these changes at the same time.

Creating a test environment is as simple as:

    cd conda_package
    conda env create -f ./dev_environment.yaml
    conda activate mpas_tools_dev
    python -m pip install -e .

No conda build or conda create --use-local.

The documentation has been updated with this new approach.

@xylar

xylar commented May 1, 2021

Copy link
Copy Markdown
Collaborator Author

In the near future, when a dev_environment.yaml is available for MPAS-Analysis, geometric_features, compass, etc., the following should be possible for developing two (or more) packages simultaneously in an environment I've called mpas_dev:

conda create -y -n mpas_dev python=3.8
conda activate mpas_dev

cd ~/mpas_work/tools/MPAS-Tools/conda_package
conda env update -n mpas_dev -f ./dev_environment.yaml
python -m pip install -e .

cd ~/mpas_work/analysis/MPAS-Analysis
conda env update -n mpas_dev -f ./dev_environment.yaml
python -m pip install -e .

@xylar

xylar commented May 1, 2021

Copy link
Copy Markdown
Collaborator Author

@matthewhoffman, @mark-petersen, @sbrus89, @dengwirda, @trhille, just making you aware of this update. Please ping anyone else who I might have missed.

@xylar
xylar merged commit e13f8fd into MPAS-Dev:master May 1, 2021
@xylar
xylar deleted the add_dev_env_yaml branch May 1, 2021 12:22
@dengwirda dengwirda assigned xylar and unassigned xylar May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant