Skip to content

Commit

Permalink
Merge pull request #438 from bertsky/fix-check
Browse files Browse the repository at this point in the history
Fix pip check and some native configurations
  • Loading branch information
stweil authored May 27, 2024
2 parents ed5fb38 + dac5cb5 commit 659dcdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,11 @@ ifneq ($(PYTHON_VERSION),3.8)
DEFAULT_DISABLED_MODULES += cor-asv-ann ocrd_keraslm
endif
endif
ifeq ($(PYTHON_VERSION),3.11)
# Detectron2 relies on Pytorch 1 which still uses pkg_resources
DEFAULT_DISABLED_MODULES += ocrd_detectron2
endif
ifeq ($(PYTHON_VERSION),3.12)
# The required tensorflow is not available for Python 3.12.
DEFAULT_DISABLED_MODULES += eynollah ocrd_anybaseocr ocrd_calamari sbb_binarization
# The required coremltools does not support Python 3.12.
DEFAULT_DISABLED_MODULES += ocrd_kraken
# Detectron2 relies on Pytorch 1 which still uses pkg_resources
DEFAULT_DISABLED_MODULES += ocrd_detectron2
endif
ifeq ($(shell uname -s),Darwin)
# Disable ocrd_olena for macOS because build is broken.
Expand Down Expand Up @@ -666,9 +660,6 @@ define pip_install_tf1nvidia =
pushd $$name && for path in $$name*; do mv $$path $${path/$$name/$$newname}; done && popd && \
$(PYTHON) -m wheel pack $$name && \
$(SEMPIP) pip install --no-cache-dir $$newname*.whl && popd && rm -fr $$OLDPWD; fi
# - preempt conflict over numpy between scikit-image and tensorflow
# - preempt conflict over numpy between tifffile and tensorflow (and allow py36)
. $(ACTIVATE_VENV) && $(SEMPIP) pip install imageio==2.14.1 "tifffile<2022"
# - preempt conflict over numpy between h5py and tensorflow
. $(ACTIVATE_VENV) && $(SEMPIP) pip install "numpy<1.24"
endef
Expand Down
2 changes: 1 addition & 1 deletion ocrd_tesserocr
Submodule ocrd_tesserocr updated 2 files
+1 −1 Makefile
+1 −1 repo/tesseract

0 comments on commit 659dcdb

Please sign in to comment.