Allow installation of ML free version.

Add an option to the install script, `--no-ml`, that when given will
install Talon without ML support.

Fixes #96
This commit is contained in:
Umair Khan
2016-07-11 16:03:03 +05:00
parent 35645f9ade
commit 07f68815df
3 changed files with 38 additions and 6 deletions

View File

@@ -1,7 +1,12 @@
from talon.quotations import register_xpath_extensions
from talon import signature
try:
from talon import signature
ML_ENABLED = True
except ImportError:
ML_ENABLED = False
def init():
register_xpath_extensions()
signature.initialize()
if ML_ENABLED:
signature.initialize()