Skip to content

only package executable and library into wheel#24

Open
hassec wants to merge 1 commit intoshimwell:building_wheels_2from
hassec:hassec_skbuild
Open

only package executable and library into wheel#24
hassec wants to merge 1 commit intoshimwell:building_wheels_2from
hassec:hassec_skbuild

Conversation

@hassec
Copy link

@hassec hassec commented Dec 19, 2022

Locally, I can build linux wheels with this config, and have the openmc binary and libopenmc.so library correctly packaged into the wheel.

Something I've not yet had any luck with is editable builds. But they also seem to be somewhat broken in sckit-build + setuptools > 64 (scikit-build/scikit-build#740)

Bit tough to really figure out what the proper way is given the limited scikit-build docs :/

# Ensure we only bundle what is really needed in the python package.
# For more info See skbuild docs.
def filter_install_files(cmake_manifest):
return list(filter(lambda f: f.endswith(".so") or f.endswith("bin/openmc"), cmake_manifest))
Copy link
Author

@hassec hassec Dec 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently just trying to get linux to properly work.

But, note to self that this needs to be extended to work on mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant