Skip to content

Commit bbef651

Browse files
authored
Merge pull request #226 from HelgeGehring/pin-python-312
pin python to 3.12 due to slepc4py not yet available for 3.13
2 parents e638d7e + 3a9778b commit bbef651

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

.docker/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,19 @@ FROM ghcr.io/mamba-org/micromamba:latest
33
USER root
44
RUN apt-get update && apt-get install -y --no-install-recommends \
55
gmsh \
6+
curl \
7+
patchelf \
68
&& rm -rf /var/lib/apt/lists/*
9+
10+
RUN curl -fL https://julialang-s3.julialang.org/bin/linux/x64/1.11/julia-1.11.3-linux-x86_64.tar.gz \
11+
| tar -C /usr/local -xz --strip-components=1
12+
RUN patchelf --clear-execstack /usr/local/lib/julia/libopenlibm.so
13+
714
USER $MAMBA_USER
815

916
COPY --chmod=777 . ${HOME}
1017

11-
RUN micromamba install -y -n base -f environment.yml julia && micromamba clean --all --yes
18+
RUN micromamba install -y -n base -f environment.yml && micromamba clean --all --yes
1219
ARG MAMBA_DOCKERFILE_ACTIVATE=1
1320
RUN pip install --no-cache notebook jupyterlab
1421
RUN pip install .

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
miniforge-version: latest
5656
activate-environment: env
5757
use-mamba: true
58-
python-version: "3.11"
58+
python-version: "3.12"
5959
- name: Add conda to system path
6060
run: |
6161
echo $CONDA/bin >> $GITHUB_PATH
@@ -66,7 +66,7 @@ jobs:
6666
UV_SYSTEM_PYTHON: 1
6767
run: |
6868
sudo apt-get install -y libglu1-mesa
69-
mamba install slepc4py=*=complex* uv -y
69+
mamba env create -f environment.yml
7070
uv pip install -r pyproject.toml
7171
- name: Build package
7272
env:

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
UV_SYSTEM_PYTHON: 1
3737
run: |
3838
sudo apt-get install -y libglu1-mesa xvfb
39-
mamba install slepc4py=*=complex* -y
39+
mamba env create -f environment.yml
4040
mamba install julia
4141
uv pip install .
4242
uv pip install "jupyter-book<2"

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: conda_env
22
channels:
33
- conda-forge
44
dependencies:
5-
- python
5+
- python=3.12
66
- pip
77
- slepc4py=*=complex*
88
- numpy

0 commit comments

Comments
 (0)