Skip to content

Commit

Permalink
fixed setup version check for v4 extra compilation args (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirfz committed May 31, 2017
1 parent 9c7774e commit 66b53fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def get_build_args():
_LOGGER.warn('pkg-config failed to find tesseract/lept libraries: {}'.format(e))
build_args = get_tesseract_version()

if build_args['cython_compile_time_env']['TESSERACT_VERSION'] >= 4.:
if build_args['cython_compile_time_env']['TESSERACT_VERSION'] >= 0x040000:
_LOGGER.debug('tesseract >= 4.00 requires c++11 compiler support')
build_args['extra_compile_args'] = ['-std=c++11']

Expand Down
2 changes: 1 addition & 1 deletion tesserocr.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tesseract 3.04.00
['eng', 'osd', 'equ'])
"""

__version__ = '2.2.0'
__version__ = '2.2.1'

import os
from io import BytesIO
Expand Down

0 comments on commit 66b53fe

Please sign in to comment.