-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* finalize conda recipe * update conda recipe Include python as differentiator
- Loading branch information
Showing
5 changed files
with
167 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,45 @@ | ||
# This are the recipe files for conda. | ||
|
||
# This is the recipe for conda. | ||
|
||
## Files: | ||
|
||
meta.yaml : conda config | ||
**meta.yaml** : conda config | ||
|
||
**build.sh** : Bash script for compiling based on `CMake`. | ||
|
||
build.sh : Bash script for compiling based on CMake. | ||
**conda\_build\_config.yaml** : Used for defining various variants. | ||
|
||
conda_build_config.yaml: Used for defining various variants. Currently mpich options. | ||
## Procedure: | ||
|
||
cross-linux.cmake : left there for testing. Probably not needed. | ||
Set the options in `conda_build_config.yaml`. | ||
|
||
Note that having both false/true in the options would create all combinations. | ||
|
||
## Procedure: | ||
It's better if the binaries are then differenciated by adding in the `meta.yaml` file the variable to the name definition e.g. | ||
|
||
```python | ||
name: {{ name|lower }}-{{ TVD_LIM|lower }} | ||
``` | ||
|
||
Edit `meta.yaml` file setting | ||
|
||
- version | ||
|
||
```python | ||
{% set version = "5.9" %} | ||
``` | ||
|
||
- branch | ||
|
||
```python | ||
git_tag: v5.9 | ||
``` | ||
|
||
Make sure that you have `conda-build` and `conda-verify` in your env. You can use | ||
|
||
`conda install conda-build conda-verify` | ||
|
||
Build by executing from the folder containing the *conda.recipe* folder: | ||
|
||
`conda build conda.recipe` | ||
|
||
Upload to your private channel. See [here](https://docs.conda.io/projects/conda-build/en/latest/user-guide/tutorials/build-pkgs.html#optional-uploading-new-packages-to-anaconda-org) for more info. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,67 @@ | ||
python: | ||
- 3.8 | ||
- 3.9 | ||
- 3.10 | ||
- 3.11 | ||
mpi: | ||
- openmpi # [not win] | ||
- mpich # [not win] | ||
|
||
#pin_run_as_build: | ||
# openmpi: x.x | ||
|
||
#pin_run_as_build: | ||
# mpich: x.x | ||
|
||
WWM: | ||
# - true | ||
- false | ||
WW3: | ||
# - true | ||
- false | ||
TVD_LIM: | ||
# - SB | ||
- VL | ||
# - MM | ||
# - OS | ||
PREC_EVAP: | ||
# - true | ||
- false | ||
GOTM: | ||
# - true | ||
- false | ||
HA: | ||
# - true | ||
- false | ||
OLDIO: | ||
# - true | ||
- false | ||
SED2D: | ||
# - true | ||
- false | ||
ICE: | ||
# - true | ||
- false | ||
GEN: | ||
# - true | ||
- false | ||
AGE: | ||
# - true | ||
- false | ||
ECO: | ||
# - true | ||
- false | ||
ICM: | ||
# - true | ||
- false | ||
PH: | ||
# - true | ||
- false | ||
COSINE: | ||
# - true | ||
- false | ||
FIB: | ||
# - true | ||
- false | ||
FABM: | ||
# - true | ||
- false | ||
MARSH: | ||
# - true | ||
- false | ||
SED: | ||
# - true | ||
- false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters