Skip to content

pism/pism-conda

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

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.

$ sh build.sh

PISM Dev with

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

$ sh build-with-petsc.sh

About

Environments to test and build PISM conda packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages