Skip to content

Commit 4aebc09

Browse files
authored
Merge pull request #338 from xylar/add_dev_tools_to_conda_package
Add dev tools to the conda package
2 parents f1a3ee1 + 5858171 commit 4aebc09

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+710
-80
lines changed

azure-pipelines.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,16 @@ jobs:
4646
eval "$(conda shell.bash hook)"
4747
# workaround based on recent failures
4848
rm /usr/share/miniconda/pkgs/cache/*.json
49-
conda mambabuild -m ci/mpi_$(mpi)_python${PYTHON_VERSION}.yaml conda/recipe
49+
conda mambabuild -m ci/linux_mpi_$(mpi)_python${PYTHON_VERSION}.yaml \
50+
-c conda-forge -c e3sm/label/compass conda/recipe
5051
displayName: Build COMPASS metapackage
5152
5253
- bash: |
5354
set -e
5455
eval "$(conda shell.bash hook)"
5556
mamba create --yes --quiet --name compass -c ${CONDA_PREFIX}/conda-bld/ \
56-
python=$PYTHON_VERSION compass sphinx mock sphinx_rtd_theme m2r
57+
-c conda-forge -c e3sm/label/compass python=$PYTHON_VERSION compass \
58+
sphinx mock sphinx_rtd_theme m2r2
5759
displayName: Create compass conda environment
5860
5961
- bash: |
@@ -192,14 +194,15 @@ jobs:
192194
193195
- bash: |
194196
eval "$(conda shell.bash hook)"
195-
conda mambabuild -m ci/mpi_$(mpi)_python${PYTHON_VERSION}.yaml conda/recipe
197+
conda mambabuild -m ci/osx_mpi_$(mpi)_python${PYTHON_VERSION}.yaml \
198+
-c conda-forge -c e3sm/label/compass conda/recipe
196199
displayName: Build COMPASS metapackage
197200
198201
- bash: |
199202
set -e
200203
eval "$(conda shell.bash hook)"
201204
mamba create --yes --quiet --name compass -c ${CONDA_PREFIX}/conda-bld/ \
202-
python=$PYTHON_VERSION compass
205+
-c conda-forge -c e3sm/label/compass python=$PYTHON_VERSION compass
203206
displayName: Create compass conda environment
204207
205208
- bash: |

ci/generate.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
from jinja2 import Template
44

55

6-
with open('template.yaml') as f:
7-
tempate_test = f.read()
8-
9-
template = Template(tempate_test)
10-
for python in ['3.7', '3.8', '3.9', '3.10']:
11-
for mpi in ['nompi', 'mpich', 'openmpi']:
12-
script = template.render(python=python, mpi=mpi)
13-
filename = 'mpi_{}_python{}.yaml'.format(mpi, python)
14-
with open(filename, 'w') as handle:
15-
handle.write(script)
6+
for os in ['linux', 'osx']:
7+
with open(f'template_{os}.yaml') as f:
8+
template_test = f.read()
9+
10+
template = Template(template_test)
11+
for python in ['3.7', '3.8', '3.9', '3.10']:
12+
for mpi in ['nompi', 'mpich', 'openmpi']:
13+
script = template.render(python=python, mpi=mpi)
14+
filename = f'{os}_mpi_{mpi}_python{python}.yaml'
15+
with open(filename, 'w') as handle:
16+
handle.write(script)

ci/linux_mpi_mpich_python3.10.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
c_compiler:
2+
- gcc
3+
c_compiler_version:
4+
- 10
5+
cxx_compiler:
6+
- gxx
7+
cxx_compiler_version:
8+
- 10
9+
fortran_compiler:
10+
- gfortran
11+
fortran_compiler_version:
12+
- 10
13+
hdf5:
14+
- 1.12.1
15+
libnetcdf:
16+
- 4.8.1
17+
mpi:
18+
- mpich
19+
netcdf_fortran:
20+
- 4.5
21+
pin_run_as_build:
22+
python:
23+
min_pin: x.x
24+
max_pin: x.x
25+
python:
26+
- 3.10.* *_cpython

ci/linux_mpi_mpich_python3.7.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
c_compiler:
2+
- gcc
3+
c_compiler_version:
4+
- 10
5+
cxx_compiler:
6+
- gxx
7+
cxx_compiler_version:
8+
- 10
9+
fortran_compiler:
10+
- gfortran
11+
fortran_compiler_version:
12+
- 10
13+
hdf5:
14+
- 1.12.1
15+
libnetcdf:
16+
- 4.8.1
17+
mpi:
18+
- mpich
19+
netcdf_fortran:
20+
- 4.5
21+
pin_run_as_build:
22+
python:
23+
min_pin: x.x
24+
max_pin: x.x
25+
python:
26+
- 3.7.* *_cpython

ci/linux_mpi_mpich_python3.8.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
c_compiler:
2+
- gcc
3+
c_compiler_version:
4+
- 10
5+
cxx_compiler:
6+
- gxx
7+
cxx_compiler_version:
8+
- 10
9+
fortran_compiler:
10+
- gfortran
11+
fortran_compiler_version:
12+
- 10
13+
hdf5:
14+
- 1.12.1
15+
libnetcdf:
16+
- 4.8.1
17+
mpi:
18+
- mpich
19+
netcdf_fortran:
20+
- 4.5
21+
pin_run_as_build:
22+
python:
23+
min_pin: x.x
24+
max_pin: x.x
25+
python:
26+
- 3.8.* *_cpython

ci/linux_mpi_mpich_python3.9.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
c_compiler:
2+
- gcc
3+
c_compiler_version:
4+
- 10
5+
cxx_compiler:
6+
- gxx
7+
cxx_compiler_version:
8+
- 10
9+
fortran_compiler:
10+
- gfortran
11+
fortran_compiler_version:
12+
- 10
13+
hdf5:
14+
- 1.12.1
15+
libnetcdf:
16+
- 4.8.1
17+
mpi:
18+
- mpich
19+
netcdf_fortran:
20+
- 4.5
21+
pin_run_as_build:
22+
python:
23+
min_pin: x.x
24+
max_pin: x.x
25+
python:
26+
- 3.9.* *_cpython

ci/linux_mpi_nompi_python3.10.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
c_compiler:
2+
- gcc
3+
c_compiler_version:
4+
- 10
5+
cxx_compiler:
6+
- gxx
7+
cxx_compiler_version:
8+
- 10
9+
fortran_compiler:
10+
- gfortran
11+
fortran_compiler_version:
12+
- 10
13+
hdf5:
14+
- 1.12.1
15+
libnetcdf:
16+
- 4.8.1
17+
mpi:
18+
- nompi
19+
netcdf_fortran:
20+
- 4.5
21+
pin_run_as_build:
22+
python:
23+
min_pin: x.x
24+
max_pin: x.x
25+
python:
26+
- 3.10.* *_cpython

ci/linux_mpi_nompi_python3.7.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
c_compiler:
2+
- gcc
3+
c_compiler_version:
4+
- 10
5+
cxx_compiler:
6+
- gxx
7+
cxx_compiler_version:
8+
- 10
9+
fortran_compiler:
10+
- gfortran
11+
fortran_compiler_version:
12+
- 10
13+
hdf5:
14+
- 1.12.1
15+
libnetcdf:
16+
- 4.8.1
17+
mpi:
18+
- nompi
19+
netcdf_fortran:
20+
- 4.5
21+
pin_run_as_build:
22+
python:
23+
min_pin: x.x
24+
max_pin: x.x
25+
python:
26+
- 3.7.* *_cpython

ci/linux_mpi_nompi_python3.8.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
c_compiler:
2+
- gcc
3+
c_compiler_version:
4+
- 10
5+
cxx_compiler:
6+
- gxx
7+
cxx_compiler_version:
8+
- 10
9+
fortran_compiler:
10+
- gfortran
11+
fortran_compiler_version:
12+
- 10
13+
hdf5:
14+
- 1.12.1
15+
libnetcdf:
16+
- 4.8.1
17+
mpi:
18+
- nompi
19+
netcdf_fortran:
20+
- 4.5
21+
pin_run_as_build:
22+
python:
23+
min_pin: x.x
24+
max_pin: x.x
25+
python:
26+
- 3.8.* *_cpython

ci/linux_mpi_nompi_python3.9.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
c_compiler:
2+
- gcc
3+
c_compiler_version:
4+
- 10
5+
cxx_compiler:
6+
- gxx
7+
cxx_compiler_version:
8+
- 10
9+
fortran_compiler:
10+
- gfortran
11+
fortran_compiler_version:
12+
- 10
13+
hdf5:
14+
- 1.12.1
15+
libnetcdf:
16+
- 4.8.1
17+
mpi:
18+
- nompi
19+
netcdf_fortran:
20+
- 4.5
21+
pin_run_as_build:
22+
python:
23+
min_pin: x.x
24+
max_pin: x.x
25+
python:
26+
- 3.9.* *_cpython

ci/linux_mpi_openmpi_python3.10.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
c_compiler:
2+
- gcc
3+
c_compiler_version:
4+
- 10
5+
cxx_compiler:
6+
- gxx
7+
cxx_compiler_version:
8+
- 10
9+
fortran_compiler:
10+
- gfortran
11+
fortran_compiler_version:
12+
- 10
13+
hdf5:
14+
- 1.12.1
15+
libnetcdf:
16+
- 4.8.1
17+
mpi:
18+
- openmpi
19+
netcdf_fortran:
20+
- 4.5
21+
pin_run_as_build:
22+
python:
23+
min_pin: x.x
24+
max_pin: x.x
25+
python:
26+
- 3.10.* *_cpython

ci/linux_mpi_openmpi_python3.7.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
c_compiler:
2+
- gcc
3+
c_compiler_version:
4+
- 10
5+
cxx_compiler:
6+
- gxx
7+
cxx_compiler_version:
8+
- 10
9+
fortran_compiler:
10+
- gfortran
11+
fortran_compiler_version:
12+
- 10
13+
hdf5:
14+
- 1.12.1
15+
libnetcdf:
16+
- 4.8.1
17+
mpi:
18+
- openmpi
19+
netcdf_fortran:
20+
- 4.5
21+
pin_run_as_build:
22+
python:
23+
min_pin: x.x
24+
max_pin: x.x
25+
python:
26+
- 3.7.* *_cpython

ci/linux_mpi_openmpi_python3.8.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
c_compiler:
2+
- gcc
3+
c_compiler_version:
4+
- 10
5+
cxx_compiler:
6+
- gxx
7+
cxx_compiler_version:
8+
- 10
9+
fortran_compiler:
10+
- gfortran
11+
fortran_compiler_version:
12+
- 10
13+
hdf5:
14+
- 1.12.1
15+
libnetcdf:
16+
- 4.8.1
17+
mpi:
18+
- openmpi
19+
netcdf_fortran:
20+
- 4.5
21+
pin_run_as_build:
22+
python:
23+
min_pin: x.x
24+
max_pin: x.x
25+
python:
26+
- 3.8.* *_cpython

ci/linux_mpi_openmpi_python3.9.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
c_compiler:
2+
- gcc
3+
c_compiler_version:
4+
- 10
5+
cxx_compiler:
6+
- gxx
7+
cxx_compiler_version:
8+
- 10
9+
fortran_compiler:
10+
- gfortran
11+
fortran_compiler_version:
12+
- 10
13+
hdf5:
14+
- 1.12.1
15+
libnetcdf:
16+
- 4.8.1
17+
mpi:
18+
- openmpi
19+
netcdf_fortran:
20+
- 4.5
21+
pin_run_as_build:
22+
python:
23+
min_pin: x.x
24+
max_pin: x.x
25+
python:
26+
- 3.9.* *_cpython

0 commit comments

Comments
 (0)