Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
78e5ec8
Add visualization library to CMake build
noajshu Aug 11, 2025
482cb81
Merge pull request #36 from noajshu/codex/update-cmakelists-to-includ…
noajshu Aug 11, 2025
106ce02
Merge branch 'main' into main
noajshu Aug 12, 2025
b4c9d08
Merge remote-tracking branch 'quantum/main'
noajshu Aug 12, 2025
5c211bc
Fix CMake Python module placement and add agent instructions
noajshu Aug 13, 2025
d93e31d
Merge pull request #37 from noajshu/codex/add-agents.md-documentation…
noajshu Aug 13, 2025
7c10268
Allow decode_to_errors to accept bitstring
noajshu Aug 20, 2025
8a27808
Merge pull request #38 from noajshu/codex/update-decode_to_errors-to-…
noajshu Aug 20, 2025
1e52d57
Merge branch 'quantumlib:main' into main
noajshu Aug 20, 2025
c34dd80
clang-format
noajshu Aug 20, 2025
24c0d69
Update src/tesseract.pybind.h
noajshu Aug 20, 2025
96849b6
remove stringstream
noajshu Aug 20, 2025
3d486b0
more fixes
noajshu Aug 20, 2025
20e506d
Merge remote-tracking branch 'quantum'
noajshu Aug 29, 2025
61867e2
Handle explicit DetIndex case
noajshu Aug 29, 2025
a3e2663
Merge pull request #39 from noajshu/codex/create-detorder-enum-and-up…
noajshu Aug 29, 2025
7309377
Merge remote-tracking branch 'quantum'
noajshu Aug 29, 2025
454521f
expand det index test
noajshu Aug 29, 2025
18b12cd
Merge pull request #40 from noajshu/codex/refactor-test_build_det_ord…
noajshu Aug 29, 2025
41f7c3e
update beam climbing for when det orders > beam+1
noajshu Aug 29, 2025
e9a0774
Merge remote-tracking branch 'origin'
noajshu Aug 29, 2025
bead3cf
Merge remote-tracking branch 'quantum'
noajshu Aug 30, 2025
83bd908
Fix Python 3.13 build and document wheel creation
noajshu Aug 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,28 @@
- Use the **CMake** build system when interacting with this repository. Humans use Bazel.
- A bug in some LLM coding environments makes Bazel difficult to use, so agents should rely on CMake.
- Keep both the CMake and Bazel builds working at all times.

## Building the Python Wheel

To build the Python wheel for `tesseract_decoder` locally, you will need to use the `bazel build` command and provide the version and Python target version as command-line arguments. This is because the `py_wheel` rule in the `BUILD` file uses "Make" variable substitution, which expects these values to be defined at build time.

Use the following command:

```bash
bazel build //:tesseract_decoder_wheel --define=VERSION=0.1.1 --define=TARGET_VERSION=py313
```

- `--define=VERSION=0.1.1`: Sets the version of the wheel. You should replace `0.1.1` with the current version from the `_version.py` file.
- `--define=TARGET_VERSION=py313`: Sets the Python version tag for the wheel. Replace `py313` with the appropriate tag for the Python version you are targeting (e.g., `py312` for Python 3.12).

The resulting wheel file will be located in the `bazel-bin/` directory.

## Updating Dependencies

If you change the Python version in `MODULE.bazel`, you will need to regenerate the `requirements_lock.txt` file to ensure all dependencies are compatible. To do this, run the following command:

```bash
bazel run //src/py:requirements.update
```

This will update the `src/py/requirements_lock.txt` file with the correct dependency versions for the new Python environment.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ bazel_dep(name = "rules_python", version = "0.40.0")
bazel_dep(name = "rules_cc", version = "0.0.17")
bazel_dep(name = "pybind11_bazel", version = "2.13.6")

DEFAULT_PYTHON_VERSION = "3.11"
DEFAULT_PYTHON_VERSION = "3.13"

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = DEFAULT_PYTHON_VERSION, is_default = True)
Expand Down
2 changes: 1 addition & 1 deletion src/py/requirements_lock.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.13
# by the following command:
#
# bazel run //src/py:requirements.update
Expand Down
Loading