Skip to content

Commit

Permalink
Enable MOSEK in wheel builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwoehlke-kitware committed Apr 13, 2022
1 parent 6f11371 commit dc6f850
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/wheel/image/build-drake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ bazel run \
--repo_env=DRAKE_OS=manylinux \
--define NO_DRAKE_VISUALIZER=ON \
--define NO_DREAL=ON \
--define WITH_MOSEK=ON \
--define WITH_SNOPT=ON \
//:install -- /opt/drake
9 changes: 8 additions & 1 deletion tools/wheel/image/build-wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,19 @@ cp -r -t /wheel/pydrake \
/opt/drake/lib/python*/site-packages/pydrake/*

cp -r -t /wheel/pydrake/lib \
/opt/drake/lib/libdrake*.so
/opt/drake/lib/libdrake*.so \

# NOTE: build-vtk.sh also puts licenses in /opt/drake-dependencies/licenses.
cp -r -t /wheel/pydrake/doc \
/opt/drake-dependencies/licenses/*

# MOSEK is "sort of" third party, but is procured as part of Drake's build and
# ends up in /opt/drake. It needs to be copied somewhere where auditwheel can
# find it.
cp -r -t /opt/drake-dependencies/lib \
/opt/drake/lib/libmosek*.so* \
/opt/drake/lib/libcilkrts*.so*

# TODO(mwoehlke-kitware) We need a different way of shipping non-arch files
# (examples, models).
cp -r -t /wheel/pydrake/share/drake \
Expand Down
1 change: 1 addition & 0 deletions tools/wheel/test/test-wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ python << EOF
import pydrake.all
print(pydrake.getDrakePath())
print(pydrake.all.PackageMap().GetPath("drake"))
assert pydrake.all.MosekSolver().available(), "Missing MOSEK"
assert pydrake.all.SnoptSolver().available(), "Missing SNOPT"
EOF

0 comments on commit dc6f850

Please sign in to comment.