-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script for building manylinux wheels #189
Changes from 5 commits
23bc8db
dd9c772
8a4ad3f
35116bf
b75a005
d6b4300
a579ca7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
# Builds manylinux cyipopt wheels with Ipopt 3.14.11 based on MUMPS 5.5.1, and OpenBLAS 0.3.15 | ||
set -eu # Stop script if a line fails | ||
TAG=${1} | ||
echo "Building cyipopt with tag $TAG" | ||
|
||
# Install efficient BLAS & LAPACK library | ||
yum install -y openblas-devel-0.3.15-4.el8 | ||
|
||
pushd /tmp | ||
|
||
# MUMPS (Linear solver used by Ipopt) | ||
git clone https://github.com/coin-or-tools/ThirdParty-Mumps --depth=1 --branch releases/3.0.4 | ||
pushd ThirdParty-Mumps | ||
sh get.Mumps | ||
./configure --with-lapack="-L/usr/include/openblas -lopenblas" | ||
make | ||
make install | ||
popd | ||
|
||
|
||
# Ipopt (The solver itself) | ||
git clone https://github.com/coin-or/Ipopt --depth=1 --branch releases/3.14.11 | ||
pushd Ipopt | ||
./configure --with-lapack="-L/usr/include/openblas -lopenblas" | ||
make | ||
make install | ||
popd | ||
|
||
# build cyipopt for many python versions | ||
git clone https://github.com/mechmotum/cyipopt --depth=1 --branch $TAG | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What I mean by the release tarballs is to download https://files.pythonhosted.org/packages/4c/34/180b14dc521ae6a393c98d74d59afc79a7edc19a18721b69571843bfc495/cyipopt-1.2.0.tar.gz and extract it instead of checkout out a commit in the git repo. |
||
pushd cyipopt | ||
mkdir dist | ||
for PYVERSION in "cp311-cp311" "cp310-cp310" "cp39-cp39" "cp38-cp38" "pp39-pypy39_pp73" "pp38-pypy38_pp73" ; do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is also support for python 3.7 in this
|
||
/opt/python/$PYVERSION/bin/pip wheel --no-deps --wheel-dir=./dist . | ||
done | ||
for wheel in dist/cyipopt*; do | ||
auditwheel repair $wheel # Inject solver's shared libraries to wheel | ||
done | ||
for wheel in wheelhouse/*.whl; do | ||
cp -rf $wheel /wheels/ # Copy repaired wheel to shared volume | ||
done | ||
popd | ||
|
||
popd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't you just yum install ipopt? Seems like either 3.13 or 3.14 are available: https://packages.fedoraproject.org/pkgs/coin-or-Ipopt/coin-or-Ipopt/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you say "but I would rather rely on building ipopt and mumps from source, so that we have recent versions".