Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dynobo committed Dec 27, 2021
1 parent 15a7b70 commit 11c704f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/python.yaml
Expand Up @@ -138,8 +138,7 @@ jobs:
tesseract-ocr-eng
- name: Poetry publish
run: |
poetry config repositories.testpypi https://test.pypi.org/simple/
poetry publish --build --repository testpypi --username __token__ --password {{ secrets.TESTPYPI_TOKEN }}
poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN }}
build-packages:
name: Build packages and prepare release
Expand Down
6 changes: 5 additions & 1 deletion build.py
Expand Up @@ -218,7 +218,11 @@ def bundle_tesserocr_dylibs():
os.chmod(new_lib_path, stat.S_IRWXU)

# Relink libs
tesserocr = f"{app_pkg_path}/tesserocr.cpython-37m-darwin.so"
if sys.version_info[0] == 3 and sys.version_info[1] == 7:
tesserocr = f"{app_pkg_path}/tesserocr.cpython-37m-darwin.so"
else:
tesserocr = f"{app_pkg_path}/tesserocr.cpython-39-darwin.so"

libwebp7 = "/usr/local/Cellar/webp/1.2.1_1/lib/libwebp.7.dylib"
changeset = [
(libtiff, [libjpeg]),
Expand Down

0 comments on commit 11c704f

Please sign in to comment.