caa9007e84
I added the gtk backend to matplotlib; if these added dependencies are too much, we can make this optional.
17 lines
530 B
Diff
17 lines
530 B
Diff
http://code.google.com/p/ocropus/issues/detail?id=365
|
|
|
|
diff --git a/setup.py b/setup.py
|
|
index c6ade25..a2ad6bf 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -8,7 +8,10 @@ assert sys.version_info[0]==2 and sys.version_info[1]>=7,\
|
|
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
|
|
modelprefix = "http://iupr1.cs.uni-kl.de/~tmb/ocropus-models/"
|