Skip to content
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

Enable MOSEK in wheel builds. #16927

Merged
merged 1 commit into from
Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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