From a116404d3dc1bf8bc61e7f63739bb80a4e51111d Mon Sep 17 00:00:00 2001 From: Eirik Keilegavlen Date: Thu, 13 Feb 2025 08:10:46 +0000 Subject: [PATCH] BLD: Update base dockerfile to use pyproject.toml This should have been done when migrating the project requirements from the old setup to pyproject. --- dockerfiles/base/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dockerfiles/base/Dockerfile b/dockerfiles/base/Dockerfile index 1c1c59e98..8599cd9ea 100644 --- a/dockerfiles/base/Dockerfile +++ b/dockerfiles/base/Dockerfile @@ -39,8 +39,10 @@ WORKDIR ${POREPY_HOME} # are useful for achieving good performance. RUN pip install pypardiso -# Install dependencies -RUN pip install -r ./requirements.txt +# Fetch the dependencies from the pyproject.toml file and install them. +RUN pip install --no-build-isolation --no-deps -r <(python -c "import toml; print('\n'.join(toml.load('pyproject.toml')['project']['dependencies']))") +RUN pip install --no-build-isolation --no-deps -r <(python -c "import toml; print('\n'.join(toml.load('pyproject.toml')['project']['optional-dependencies']['development']))") + # Move back to code directory WORKDIR ${HOME}