Skip to content

Commit

Permalink
docs: updated docs with additional Bazel example (#4508)
Browse files Browse the repository at this point in the history
* docs: updated docs with additional Bazel example

* fixed link
  • Loading branch information
abrisco committed Sep 3, 2024
1 parent 1a96d97 commit 454529d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions guide/src/building-and-distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ If you're packaging your library for redistribution, you should indicated the Py

To use PyO3 with bazel one needs to manually configure PyO3, PyO3-ffi and PyO3-macros. In particular, one needs to make sure that it is compiled with the right python flags for the version you intend to use.
For example see:
1. https://github.com/OliverFM/pytorch_with_gazelle -- for a minimal example of a repo that can use PyO3, PyTorch and Gazelle to generate python Build files.
2. https://github.com/TheButlah/rules_pyo3 -- which has more extensive support, but is outdated.
1. https://github.com/abrisco/rules_pyo3 -- General rules for building extension modules.
2. https://github.com/OliverFM/pytorch_with_gazelle -- for a minimal example of a repo that can use PyO3, PyTorch and Gazelle to generate python Build files.
3. https://github.com/TheButlah/rules_pyo3 -- is somewhat dated.

#### Platform tags

Expand Down

0 comments on commit 454529d

Please sign in to comment.