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

C bindings are required to build Python package #883

Merged
merged 2 commits into from
Aug 3, 2024
Merged

C bindings are required to build Python package #883

merged 2 commits into from
Aug 3, 2024

Conversation

jonathanhogg
Copy link
Contributor

Fixes #882

Copy link

google-cla bot commented Aug 1, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link

codecov bot commented Aug 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.08%. Comparing base (d437097) to head (653cc25).
Report is 68 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #883      +/-   ##
==========================================
- Coverage   91.84%   90.08%   -1.77%     
==========================================
  Files          37       64      +27     
  Lines        4976     9184    +4208     
  Branches        0      956     +956     
==========================================
+ Hits         4570     8273    +3703     
- Misses        406      911     +505     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pca006132
Copy link
Collaborator

Interesting, it should not require the C binding, and I thought the CI did test for the source distribution. I will look into it later tmr.

@jonathanhogg
Copy link
Contributor Author

Ah. I see the problem, the C bindings are ON by default:

option(MANIFOLD_CBIND "Build C (FFI) bindings" ON)

and so need to be explicitly turned OFF in the cmake defines.

@jonathanhogg
Copy link
Contributor Author

Probably worth adding a test step to make sure that the sdist can be built. Just needs to be something like:

pipx run build --sdist
pip wheel --wheel-dir dist dist/*.tar.gz

@pca006132
Copy link
Collaborator

probably this?

run: pipx run build --sdist

@jonathanhogg
Copy link
Contributor Author

probably this?

run: pipx run build --sdist

Yes, I mean, that's where you'd probably want to add the step to build a wheel from the sdist to make sure it works.

@pca006132
Copy link
Collaborator

maybe add it in this PR?

@pca006132 pca006132 merged commit 7ad7703 into elalish:master Aug 3, 2024
21 checks passed
@pca006132
Copy link
Collaborator

Thanks!

@jonathanhogg
Copy link
Contributor Author

Fingers crossed I've not broken your deployment process 😉

@elalish elalish mentioned this pull request Nov 5, 2024
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.

Building Python package from PyPI sdist dies with CMake configuration errors
2 participants