Skip to content

Commit fd06d10

Browse files
authored
Add local hacking instructions for Tesseract python module (#199)
Added instructions for local installation of Tesseract Python module. This can be somewhat non-intuitive without the magic invocation!
1 parent dbaadf1 commit fd06d10

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,15 @@ cite the following:
378378
}
379379
```
380380

381+
## Hacking on the Python module locally
382+
To install your own build of Tesseract python module locally so that you can easily modify and hack on it, use something like the following:
383+
```bash
384+
bazel build --define TARGET_VERSION="py3.12.9" --define VERSION="v0.0.0dev" :tesseract_decoder_wheel
385+
pip uninstall --y tesseract_decoder
386+
pip install bazel-bin/tesseract_decoder-0.0.0.dev0-py3.12.9-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
387+
python testscript.py
388+
```
389+
381390
## Contact
382391

383392
For any questions or concerns not addressed here, please email <tesseract-decoder-dev@google.com>.

0 commit comments

Comments
 (0)