Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
PR #1885: fix ObsPy test
Browse files Browse the repository at this point in the history
  • Loading branch information
reidpr authored Mar 28, 2024
1 parent fa4cf78 commit 1e1ef74
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/obspy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ WORKDIR /usr/local/src
#
# 2. Use latest version so we catch sooner if things explode.
#
# 3. ObsPy 1.4.0, the latest as of 2024-03-27, is incompatible with Python
# 3.12 [2], which is recently the default in Miniconda (see PR #1885 and
# issue #1886).
#
# [1]: https://docs.anaconda.com/anaconda/user-guide/faq/
ARG MC_VERSION=latest
# [2]: https://github.com/obspy/obspy/issues/3313#issuecomment-1818165937
ARG MC_VERSION=py311_24.1.2-0
ARG MC_FILE=Miniconda3-$MC_VERSION-Linux-x86_64.sh
RUN wget -nv https://repo.anaconda.com/miniconda/$MC_FILE
# Miniconda will fail if the HOME variable is not set.
Expand All @@ -32,7 +37,6 @@ RUN conda config --set auto_update_conda False
# new environment for obspy.
# See: https://github.com/obspy/obspy/wiki/Installation-via-Anaconda
RUN conda config --add channels conda-forge
# Use numpy 1.21 to avoid isse: https://github.com/obspy/obspy/issues/2940
RUN conda install --yes obspy=1.4.0
RUN conda update obspy

Expand Down

0 comments on commit 1e1ef74

Please sign in to comment.