Skip to content

Commit

Permalink
Merge pull request #665 from xylar/switch-to-conda-forge-pnetcdf-pio
Browse files Browse the repository at this point in the history
Update conda packages for unsupported machines
  • Loading branch information
xylar authored Aug 14, 2023
2 parents 38a999b + 9951e48 commit e5418aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 6 additions & 0 deletions conda/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,12 @@ def get_env_vars(machine, compiler, mpilib):
f'export I_MPI_F77=ifort\n' \
f'export I_MPI_F90=ifort\n'

if machine.startswith('conda'):
# we're using parallelio so we don't have ADIOS support
env_vars = \
f'{env_vars}' \
f'export HAVE_ADIOS=false\n'

if platform.system() == 'Linux' and machine.startswith('conda'):
env_vars = \
f'{env_vars}' \
Expand Down
4 changes: 2 additions & 2 deletions conda/compass_env/spec-file.template
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ c-compiler
cmake
cxx-compiler
fortran-compiler
libnetcdf=4.8.1={{ mpi_prefix }}_*
libnetcdf=4.9.2={{ mpi_prefix }}_*
libpnetcdf=1.12.3={{ mpi_prefix }}_*
scorpio=1.4.1={{ mpi_prefix }}_*
parallelio=2.6.0={{ mpi_prefix }}_*
m4
make
{{ mpi }}
Expand Down
7 changes: 0 additions & 7 deletions conda/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,6 @@ def install_miniconda(conda_base, activate_base, logger):

check_call(commands, logger=logger)

commands = f'{activate_base} && ' \
f'conda remove -y boa'
try:
check_call(commands, logger=logger)
except subprocess.CalledProcessError:
pass

commands = f'{activate_base} && ' \
f'mamba update -y --all && ' \
f'mamba init'
Expand Down

0 comments on commit e5418aa

Please sign in to comment.