File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ BIN = $(VIRTUAL_ENV)/bin
3131SHARE = $(VIRTUAL_ENV ) /share
3232ACTIVATE_VENV = $(VIRTUAL_ENV ) /bin/activate
3333
34+ # Get Python major and minor versions for some conditional rules.
35+ PYTHON_VERSION := $(shell $(PYTHON ) -c 'import sys; print("% u.% u" % (sys.version_info.major, sys.version_info.minor) )')
36+
3437define SEMGIT
3538$(if $(shell sem --version 2>/dev/null) ,sem --will-cite --fg --id ocrd_all_git,$(error cannot find package GNU parallel) )
3639endef
@@ -53,7 +56,13 @@ export PKG_CONFIG_PATH
5356OCRD_EXECUTABLES = $(BIN ) /ocrd # add more CLIs below
5457CUSTOM_DEPS = unzip wget python3-venv parallel git less # add more packages for deps-ubuntu below (or modules as preqrequisites)
5558
56- DISABLED_MODULES ?= cor-asv-fst opencv-python ocrd_ocropy
59+ DEFAULT_DISABLED_MODULES = cor-asv-fst opencv-python ocrd_ocropy
60+ ifeq ($(PYTHON_VERSION ) ,3.10)
61+ # Python 3.10.x does not work with current kraken.
62+ DEFAULT_DISABLED_MODULES += ocrd_kraken
63+ endif
64+ DISABLED_MODULES ?= $(DEFAULT_DISABLED_MODULES )
65+
5766# Default to all submodules, but allow overriding by user
5867# (and treat the empty value as if it was unset)
5968# opencv-python is only needed for aarch64-linux-gnu and other less common platforms,
You can’t perform that action at this time.
0 commit comments