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

Use component for python #1643

Merged
merged 3 commits into from
Feb 20, 2024
Merged

Use component for python #1643

merged 3 commits into from
Feb 20, 2024

Conversation

JeanChristopheMorinPerso
Copy link
Member

While talking with the scikit-build-core maintainers, I learned that we can use cmake components to precisely select which files to install into wheels.

What @cary-ilm did in #1487 was to instruct Imath to not be installed (https://github.com/AcademySoftwareFoundation/openexr/blob/main/cmake/OpenEXRSetup.cmake#L295). This works. But I think using components will future proof the process.

…it-build-core to only install the python component

Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
Copy link

linux-foundation-easycla bot commented Feb 16, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Member

@cary-ilm cary-ilm left a comment

Choose a reason for hiding this comment

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

LGTM, with one small typo in the comment, thanks!

pyproject.toml Outdated Show resolved Hide resolved
Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
@cary-ilm cary-ilm merged commit 222bc3d into AcademySoftwareFoundation:main Feb 20, 2024
30 checks passed
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request Mar 3, 2024
* Add "COMPONENT python" to install() the python bindings and tell scikit-build-core to only install the python component

Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>

* Update scikit-build-core to 0.8.1

Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>

* Fix typo

Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>

---------

Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
cary-ilm pushed a commit that referenced this pull request Mar 4, 2024
* Add "COMPONENT python" to install() the python bindings and tell scikit-build-core to only install the python component

Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>

* Update scikit-build-core to 0.8.1

Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>

* Fix typo

Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>

---------

Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
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.

2 participants