mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-05 00:55:44 +01:00
082f2a17ce
Now a python only application Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
15 lines
551 B
Diff
15 lines
551 B
Diff
See https://code.google.com/p/ocropus/issues/detail?id=365
|
|
|
|
diff -Naur ocropus-20120920.orig/ocropy/setup.py ocropus-20120920/ocropy/setup.py
|
|
--- ocropus-20120920.orig/ocropy/setup.py 2012-09-20 06:48:34.000000000 +0200
|
|
+++ ocropus-20120920/ocropy/setup.py 2012-09-20 11:16:24.784307573 +0200
|
|
@@ -4,6 +4,9 @@
|
|
from distutils.core import setup, Extension, Command
|
|
from distutils.command.install_data import install_data
|
|
|
|
+import matplotlib
|
|
+matplotlib.use('Agg')
|
|
+
|
|
from ocrolib import default
|
|
modeldir = "models/"
|
|
modelfiles = default.installable
|