Testing the integration of hatch, bazel and pybind11
Project description
Hatch, bazel and pybind11
This example project shows how to integrate hatch, bazel and pybind11, or in other words how to build a C++ Python extension module based pybind11 via bazel and make it part of a python package managed by hatch.
This is done very much in the spirit of Cunningham's Law:
the best way to get the right answer on the internet is not to ask a question; it's to post the wrong answer
Playing with this code
hatch build always runs bazel and therefore always refreshes the
extension module as needed, but hatch test or hatch shell do not
know they have to run bazel, so hatch build && hatch test or similar
is the robust way to rebuild the native code as needed, at least for now:
without an explicit hatch build, hatch test/shell risk running with
stale versions of the extension module.
Installation
pip install hatch-bazel-and-pybind11
License
hatch-bazel-and-pybind11 is distributed under the terms of the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hatch_bazel_and_pybind11-0.0.5.tar.gz.
File metadata
- Download URL: hatch_bazel_and_pybind11-0.0.5.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06fac33e0c93f0f8934b7cc300f217997e27f59162a38cbb930d506a2a827bfc
|
|
| MD5 |
e7631cdd30dbd9cf958be95edb2b9a96
|
|
| BLAKE2b-256 |
549768e495dcfe4d1650bf1de6d520676eebaa73460a4adc705b411cbe653cd1
|
File details
Details for the file hatch_bazel_and_pybind11-0.0.5-py3-none-any.whl.
File metadata
- Download URL: hatch_bazel_and_pybind11-0.0.5-py3-none-any.whl
- Upload date:
- Size: 181.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a516a7ca2d7b16ebaf098c4d90a32a352e00d6188815a751cb4206f503988af4
|
|
| MD5 |
0d3de5669a6943739a2f8c87fafa03d1
|
|
| BLAKE2b-256 |
933011060616d0c1812d616ecd659801aa0137d31d2a6ebdcc2c4b428ebe02f8
|