Skip to content

pism/pism-conda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: GPL-3.0

pism-conda

Repository to build and test PISM conda packages

Installation

Get pism-conda source from GitHub:

git clone [email protected]:pism/pism-conda.git
cd pism-conda

Now create a conda environment named pism-dev. This installs a barebones environment suitable to build staged-recipies.

conda env create -f environment-conda.yml
conda activate pism-conda

Clone pism/staged-recipies. How can I just checkout pism-channel?

cd ..
mkdir -p pism-staged-recipies
git clone [email protected]:pism/staged-recipes.git . || (git checkout pism-channel && git pull)
cd pism-staged-recipies
pixi install

PISM packages

The pism-channel currently has packages for yaxt, yac, and pism (stable). Change into the recipies/package directory, where package is the package you want to update. Edit the build.sh and meta.yml files.

Updating a package

To bump the version of, e.g., yac, set the new version number in meta.yml:

{% set version = "3.7.0" %}

Download the tarball and extract sha256:

openssl sha256 yac-v3.7.0.tar.gz 

Update the sha256 in meta.yml.

Linting

Before building, lint your changes:

pixi run lint

Build locally

Depending on your architecture, run

pixi run build-linux

or

pixi run build-osx

You may need to clean your path first, though

export PATH=/Users/andy/miniforge3/envs/pism-conda/bin:/usr/bin:/bin:/usr/sbin:/sbin
unset PYTHONPATH
unset CONDA_PREFIX

Uploading

anaconda upload build_artifacts/linux-64/*.conda

or

anaconda upload build_artifacts/osx-arm64/*.conda

PISM Dev

Say you want to create a development environment that installs all prerequisites from conda and compiles PISM from sources. Build from main branch

bash ~/base/pism-conda/build-pism-dbg.sh

Or build a specific branch/tag

bash ~/base/pism-conda/build-pism-dbg.sh my-branch

After building, activate with:

mamba activate pism-dbg
export PISM_DIR=$HOME/pism-dbg
export PYTHONPATH=$HOME/pism-dbg/lib/python3.13/site-packages:$PYTHONPATH
export PATH=$HOME/pism-dbg/bin:$PATH 

About

Environments to test and build PISM conda packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages