This repository hosts the recipe to build the Python interface for Cantera into a conda package. The package is built on GitHub Actions and uploaded to Anaconda.org automatically.
- Create and activate a
conda
environment withconda-build
installed
The following instructions will build:
- The latest version of the
main
branch from https://github.com/Cantera/cantera - For the version of Python installed in the
base
environment - For some unspecified default version of NumPy
git clone https://github.com/Cantera/conda-recipes
cd conda-recipes
conda build cantera
conda build --python=X.Y --numpy=U.V
export CANTERA_GIT=/path/to/cantera/repo
export INCOMING_REF=branch-name-or-commit-hash
conda build ./cantera
conda build ./cantera-matlab
export MW_HEADERS_DIR=/Applications/MATLAB_R2023a.app
conda build ./cantera-matlab