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

Looking for bazel build example for build whl #18

Open
tz301 opened this issue Jul 7, 2020 · 3 comments
Open

Looking for bazel build example for build whl #18

tz301 opened this issue Jul 7, 2020 · 3 comments

Comments

@tz301
Copy link

tz301 commented Jul 7, 2020

I have seen build examples with setuptools, cmake in https://pybind11.readthedocs.io/en/stable/compiling.html.
Could provide a bazel build example to build usable python .whl?

@bcebere
Copy link

bcebere commented Dec 7, 2020

Hello.

Check out this repo for an working example for bazel + pybind11 + whl

https://github.com/OpenMined/PSI/blob/master/setup.py

@yutongs-dmai
Copy link

@bcebere Thanks a lot! This tutorial is really helpful.

@sschnug
Copy link

sschnug commented Nov 14, 2022

I usually try to find good examples through githubs search-engine.
As google is all about bazel (or their internal version of it), the google projects are probably good candidates to look at.

While some of them seem to get wheel-building to work more bazel-native (no setup.py), i only had success with the setup.py workaround yet. My main source in this regard was: https://github.com/google/atheris/tree/master/contrib/libprotobuf_mutator

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

No branches or pull requests

4 participants