mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-31 09:44:07 -05:00
Allow PyPI packages to be built from shared libraries by adding a build argument to the Dockerfile.
18 lines
531 B
Bash
Executable File
18 lines
531 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script to be run on a manylinux2014 docker image to complete it for OPM usage.
|
|
# i.e. docker run -i -t quay.io/pypa/manylinux2014_x86_64 < setup-docker-image.sh
|
|
|
|
# A ready made Docker image is available at Dockerhub:
|
|
# docker run -i -t lindkvis/manylinux2014_opm:latest
|
|
|
|
LIBTYPE=${1:-"static"}
|
|
|
|
dnf install -y almalinux-release-devel ninja-build
|
|
|
|
if [ "$LIBTYPE" == "static" ]; then
|
|
dnf install -y blas-static lapack-static suitesparse-static
|
|
else
|
|
dnf install -y blas-devel lapack-devel suitesparse-devel
|
|
fi
|