Skip to content

Commit a179a44

Browse files
authored
Merge pull request #115 from xylar/update-to-1.9.3
Update to 1.9.3
2 parents 0f67ec9 + e405e06 commit a179a44

File tree

11 files changed

+52
-53
lines changed

11 files changed

+52
-53
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
# E3SM-Unified
22

3-
A metapackage for a unified
3+
A metapackage for a unified
44
[conda environment](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)
5-
for analysis an other post-processing of results from Energy Exascale Earth
5+
for analysis an other post-processing of results from Energy Exascale Earth
66
System Model (E3SM) simulations.
77

88
E3SM-Unified currently supports Linux and OSX, and python >=3.9,<3.11.
99
Support for Windows is not planned.
1010

1111
To create a new conda environment on a laptop or workstation (or on
1212
HPC that is not already supported by the E3SM team), first install
13-
[Mambaforge](https://github.com/conda-forge/miniforge#mambaforge). Then,
13+
[Miniforge3](https://github.com/conda-forge/miniforge#miniforge3). Then,
1414
create the E3SM-Unified environment (with MPI support from the `mpich` package
1515
in this example), use:
16-
```bash
17-
mamba create -n e3sm-unified -c conda-forge -c defaults -c e3sm \
16+
```bash
17+
conda create -n e3sm-unified -c conda-forge -c defaults -c e3sm \
1818
python=3.10 "e3sm-unified=*=mpi_mpich_*"
19-
mamba activate e3sm-unified
19+
conda activate e3sm-unified
2020
```
2121
Each time you want to use the environment in the future, again run:
2222
```bash
23-
mamba activate e3sm-unified
23+
conda activate e3sm-unified
2424
```
2525

2626
For the full list of packages in the current version of the metapackages, see:

e3sm_supported_machines/bootstrap.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ def build_env(is_test, recreate, compiler, mpi, conda_mpi, version,
139139
channels = f'{channels} -c conda-forge/label/{package}_dev'
140140

141141
# edit if not using a release candidate for a given package
142-
dev_labels = ['e3sm_diags', 'e3sm_to_cmip', 'mache', 'mpas_analysis',
143-
'mpas_tools', 'zstash']
142+
dev_labels = ['e3sm_diags', 'e3sm_to_cmip', 'mache', 'zppy']
144143
for package in dev_labels:
145144
channels = f'{channels} -c conda-forge/label/{package}_dev'
146145
channels = f'{channels} ' \

e3sm_supported_machines/default.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ ilamb = 2.7
2222

2323
# the version of mache to use during deployment (should match the version used
2424
# in the package itself)
25-
mache = 1.18.0
25+
mache = 1.21.0
2626

2727
# the version of mpi4py to build if using system compilers
2828
mpi4py = 3.1.5
2929

3030
# the version of esmpy to build if using system compilers (must match esmf from
3131
# spack below)
32-
esmpy = 8.4.2
32+
esmpy = 8.6.0
3333

3434

3535
# spack package specs
3636
[spack_specs]
3737

38-
esmf = esmf@8.4.2+mpi+netcdf~pnetcdf~external-parallelio
38+
esmf = esmf@8.6.0+mpi+netcdf~pnetcdf~external-parallelio
3939
hdf5 = [email protected]+cxx+fortran+hl+mpi+shared
4040
moab = [email protected]+mpi+hdf5+netcdf+pnetcdf+metis+parmetis+tempest
41-
nco = nco@5.1.9+openmp
41+
nco = nco@5.2.2+openmp
4242
netcdf_c = [email protected]+mpi~parallel-netcdf
4343
netcdf_fortran = [email protected]
4444
parallel_netcdf = [email protected]

e3sm_supported_machines/deploy_e3sm_unified.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def setup_install_env(activate_base, use_local, mache):
5050
channels = ' '.join(channels)
5151
commands = f'{activate_base} && ' \
5252
f'conda create -y -n temp_e3sm_unified_install ' \
53-
f'{channels} progressbar2 jinja2 {mache}'
53+
f'{channels} progressbar2 jinja2 {mache} pip'
5454

5555
check_call(commands)
5656

@@ -67,14 +67,14 @@ def remove_install_env(activate_base):
6767
def install_mache_from_branch(activate_install_env, fork, branch):
6868
print('Clone and install local mache\n')
6969
commands = f'{activate_install_env} && ' \
70-
f'rm -rf build_mache && ' \
71-
f'mkdir -p build_mache && ' \
72-
f'cd build_mache && ' \
73-
f'git clone -b {branch} ' \
74-
f'[email protected]:{fork}.git mache && ' \
75-
f'cd mache && ' \
76-
f'conda install -y --file spec-file.txt && ' \
77-
f'python -m pip install --no-deps .'
70+
f'rm -rf build_mache && ' \
71+
f'mkdir -p build_mache && ' \
72+
f'cd build_mache && ' \
73+
f'git clone -b {branch} ' \
74+
f'[email protected]:{fork}.git mache && ' \
75+
f'cd mache && ' \
76+
f'conda install -y --file spec-file.txt && ' \
77+
f'python -m pip install --no-deps .'
7878

7979
check_call(commands)
8080

e3sm_supported_machines/pm-cpu.cfg

Lines changed: 0 additions & 5 deletions
This file was deleted.

e3sm_supported_machines/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
def parse_args(bootstrap):
1515
parser = argparse.ArgumentParser(
1616
description='Deploy E3SM-Unified')
17-
parser.add_argument("--version", dest="version", default="1.9.2",
17+
parser.add_argument("--version", dest="version", default="1.9.3",
1818
help="The version of E3SM-Unified to deploy")
1919
parser.add_argument("--conda", dest="conda_base",
2020
help="Path for the conda base")

e3sm_supported_machines/templates/build.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fi
1414

1515

1616
if [ "{{ build_ilamb }}" == "True" ]; then
17-
mamba install -y {{ ilamb_channels }} --no-deps "ilamb={{ ilamb_version }}"
17+
conda install -y {{ ilamb_channels }} --no-deps "ilamb={{ ilamb_version }}"
1818
fi
1919

2020
if [ "{{ build_esmpy }}" == "True" ]; then
@@ -28,7 +28,7 @@ if [ "{{ build_esmpy }}" == "True" ]; then
2828
# this is an unused dumping grounds and causes disconcerting warnings
2929
rm -rf src/esmpy/fragments
3030

31-
python -m pip install .
31+
python -m pip install --no-deps .
3232

3333
cd ${build_dir}
3434
fi

e3sm_supported_machines/templates/load_e3sm_unified.sh.template

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
source {{ conda_base }}/etc/profile.d/conda.sh
2-
source {{ conda_base }}/etc/profile.d/mamba.sh
32

43
export E3SMU_SCRIPT="{{ script_filename }}"
54
export E3SMU_MACHINE="{{ machine }}"
@@ -9,15 +8,15 @@ then
98
# we seem to be on a login node, so load the no-MPI environment
109

1110
export E3SMU_MPI="NOMPI"
12-
mamba activate {{ env_nompi }}
11+
conda activate {{ env_nompi }}
1312

1413
export HDF5_USE_FILE_LOCKING=FALSE
1514

1615
else
1716
# we seem to be on a compute node, so load the MPI environment
1817

1918
export E3SMU_MPI="{{ env_type }}"
20-
mamba activate {{ env_name }}
19+
conda activate {{ env_name }}
2120

2221
{{ spack }}
2322

recipes/e3sm-unified/build_and_upload.bash

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
conda_dir=${HOME}/miniforge
5+
conda_dir=${HOME}/miniforge3
66
os_dir=linux-64
77
upload=False
88
dev=False
@@ -15,14 +15,12 @@ then
1515
channels="-c conda-forge/label/e3sm_diags_dev \
1616
-c conda-forge/label/e3sm_to_cmip_dev \
1717
-c conda-forge/label/mache_dev \
18-
-c conda-forge/label/mpas_analysis_dev \
19-
-c conda-forge/label/mpas_tools_dev \
20-
-c conda-forge/label/zstash_dev \
18+
-c conda-forge/label/zppy_dev \
2119
-c conda-forge"
2220

2321
for file in configs/mpi_mpich_python3.10.yaml configs/mpi_hpc_python3.10.yaml
2422
do
25-
conda mambabuild -m $file --override-channels --use-local $channels .
23+
conda build -m $file --override-channels --use-local $channels .
2624
done
2725

2826
if [ $upload == "True" ]
@@ -35,7 +33,7 @@ else
3533
channels="-c conda-forge"
3634
for file in configs/mpi_*_python*.yaml
3735
do
38-
conda mambabuild -m $file --override-channels --use-local $channels .
36+
conda build -m $file --override-channels $channels .
3937
done
4038

4139
if [ $upload == "True" ]

recipes/e3sm-unified/conda_first_failure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
'pandas'
8080
]
8181

82-
base_command = ['mamba', 'create', '-y', '-n', 'test', '--dry-run',
82+
base_command = ['conda', 'create', '-y', '-n', 'dry-run', '--dry-run',
8383
'--override-channels',
8484
'-c', 'conda-forge/label/mpas_analysis_dev',
8585
'-c', 'conda-forge/label/zstash_dev',

0 commit comments

Comments
 (0)