Replies: 1 comment 2 replies
-
A while back we updated Tesseract to allow this. We explicitly removed |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PyPI is the primary package repository used by Python. It is the source for
pip
, the built in tool that is shipped with Python. Having tesseract available on PyPI would significantly increase the potential user base. An example is opencv, which is downloaded millions of times per month from PyPI.Packages on PyPI need to be statically linked and have symbol visibility tightly controlled. All dependencies (beyond compiler libraries) must be included in the statically linked module, and only the entry points are exposed. No plugin systems can be used, since the symbols are hidden, the plugins won't be able to find the required symbols in the host libraries.
Currently tesseract is not configured to allow static linking. I tried tinkering with static linking, but found there are too many issues for me to fix in my available time.
These commands helped me get started with the project on Windows:
Install dependencies using vcpkg with triplet
x64-windows-static-md
. (On linux, the tripletx64-linux
produces static libraries) :Build using colcon (installed using pip to system Python install):
Once tesseract_planning is functioning as a static library, I can reconfigure tesseract_python to produce a single native module and wheel container that can be uploaded to PyPI.
Beta Was this translation helpful? Give feedback.
All reactions