diff --git a/.travis.yml b/.travis.yml index 9ce1ae08..79877d58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,6 +55,7 @@ before_script: - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24" - sleep 3 # give xvfb some time to start +- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then export DISABLE_OCR=1; fi - if [[ $TRAVIS_PYTHON_VERSION == 'pypy3.5' ]]; then export DISABLE_AUTOPY=1; fi - if [[ $TRAVIS_PYTHON_VERSION == 'pypy3.5' ]]; then export DISABLE_PYQT=1; fi - if [[ $TRAVIS_PYTHON_VERSION == 'pypy3.5' ]]; then export DISABLE_OPENCV=1; fi diff --git a/packaging/packager_deb.sh b/packaging/packager_deb.sh index bcf0587a..154eeab2 100644 --- a/packaging/packager_deb.sh +++ b/packaging/packager_deb.sh @@ -21,9 +21,13 @@ else apt-get -y install python3-opencv fi # text matching -apt-get -y install tesseract-ocr libtesseract-dev -apt-get -y install g++ pkg-config -pip3 install pytesseract==0.3.4 tesserocr==2.5.1 +if [[ $distro_version == "xenial" ]]; then + export DISABLE_OCR=1 +else + apt-get -y install tesseract-ocr libtesseract-dev + apt-get -y install g++ pkg-config + pip3 install pytesseract==0.3.4 tesserocr==2.5.1 +fi # deep learning pip3 install torch==1.4.0 torchvision==0.5.0 # screen controlling