-
Notifications
You must be signed in to change notification settings - Fork 213
Optionally bootstrap missing Py dependencies #4445
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
Conversation
When the optional `BOOTSTRAP_PY_DEPS` CMake flag is enabled, missing Python dependencies are installed to the build directory. This is an alternative if the user doesn't want to bother installing the dependencies themselves, e.g. on a cluster. Packages like h5py, numpy and scipy can/should still be installed by the user to make sure they use the correct HDF5, BLAS, etc., but the new `BOOTSTRAP_PY_DEPS` flag makes it easy to install pure-Python packages.
|
I tested this on Wheeler. @geoffrey4444 could you make sure this works on Ocean please? Just build and run unit tests. |
|
Tests pass on Ocean, fail on wheeler: |
ad4c427 to
9a8e522
Compare
Older versions treat string encodings differently, leading to compatibility issues.
9a8e522 to
44ad7fe
Compare
|
Edited the wheeler env file to use the new miniconda module (thanks @nilsdeppe!). Could you try again please? Tests build and pass for me. |
306044c to
a3fecd5
Compare
nilsdeppe
left a comment
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've run the unit tests on both Wheeler and Ocean and they pass other than Unit.Visualization.Python.Render1D (Timeout)
Proposed changes
When the optional
BOOTSTRAP_PY_DEPSCMake flag is enabled, missing Python dependencies are installed to${CMAKE_BINARY_DIR}/lib/python3.X/site-packages. This is an alternative if the user doesn't want to bother installing the dependencies themselves, e.g. on a cluster. If there's a problem with packages like h5py, numpy or scipy the user can/should still install them themselves to make sure they use the correct HDF5, BLAS, etc.Enabling this on Wheeler, Ocean and Minerva. The other clusters have setup scripts that install the dependencies in the user directory anyway.
This also fixes #4124 on Wheeler.
Upgrade instructions
Code review checklist
make docto generate the documentation locally intoBUILD_DIR/docs/html.Then open
index.html.code review guide.
bugfixornew featureif appropriate.Further comments