Add support for HDF5 to sdist/wheels#1727
Merged
speth merged 19 commits intoCantera:mainfrom Jul 29, 2024
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1727 +/- ##
=======================================
Coverage 73.03% 73.04%
=======================================
Files 381 381
Lines 54132 54164 +32
Branches 9233 9240 +7
=======================================
+ Hits 39534 39562 +28
+ Misses 11635 11633 -2
- Partials 2963 2969 +6 ☔ View full report in Codecov by Sentry. |
1e58f55 to
d639f01
Compare
d2995bf to
4272203
Compare
speth
requested changes
Jul 22, 2024
Member
speth
left a comment
There was a problem hiding this comment.
Thanks, @bryanwweber. Overall, this looks good to me. I had just a few minor suggestions.
b6537b9 to
881fa80
Compare
Add external dependencies to be downloaded at build time. Add a note about cython_cmake extension
This allows us to avoid running a whole bunch of unnecessary configuration checks that are required when compiling code but not when we're just copying files into a folder structure to build the sdist. Refactor the builder script Move building into sconstruct, use some functions, include the license file. Remove unused code Clean up excludes from the wheel Fix Python 3.8 typing problem
Update Boost paths Config updates cibuildwheel config changes Modify env vars for boost Bump manylinux images and use ours with Boost in them Add HDF5 library env var Try to set up for arm builds hack Update DYLD fallback path for wheel repair Use DYLD_FALLBACK_LIBRARY_PATH from the environment This avoids needing to know about special variables Move the container engine config back to pyproject.toml Set Windows test command Add Windows wheel repair command
We don't need it and this will save some config time
This aligns with the configuration in config.h
Prior to this change, build would attempt to build the sdist even if the file copies were incomplete.
Since we aren't configuring the SUNDIALS version at wheel-build time, we can directly substitute to create config.h in the include directory.
881fa80 to
239149d
Compare
239149d to
e48c4fc
Compare
Member
Author
|
@speth I think I addressed everything here 😄 |
speth
requested changes
Jul 29, 2024
Member
speth
left a comment
There was a problem hiding this comment.
Thanks, @bryanwweber. Just a couple of minor comments. Otherwise I think this is good to go.
Co-authored-by: Ray Speth <[email protected]>
91448e7 to
8386395
Compare
Member
Author
|
Thanks @speth! Good suggestions 😄 |
speth
approved these changes
Jul 29, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes proposed in this pull request
scikit-build-corescikit-build-corewill find system libraries in appropriate places because it uses CMake for configuration🚧 TODO: 🚧
system_packagesare enabled (right now they're forced to be disabled, but we don't need our private copies anymore)scons sdistdoesn't run unnecessary system checksbuild.system-requirestable (see CMake and Ninja are not installed by scikit-build-core scikit-build/scikit-build-core#806). We do not need to do this because I was wrong about when cmake is installed.If applicable, fill in the issue number this pull request is fixing
Closes Cantera/enhancements#205
If applicable, provide an example illustrating new features this pull request is introducing
Checklist
scons build&scons test) and unit tests address code coverage