Skip to content

Commit

Permalink
BLD: Update base dockerfile to use pyproject.toml
Browse files Browse the repository at this point in the history
This should have been done when migrating the project requirements
from the old setup to pyproject.
  • Loading branch information
keileg committed Feb 13, 2025
1 parent 0f77de0 commit a116404
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dockerfiles/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit a116404

Please sign in to comment.