Cythonize lexer (#2799)
This commit is contained in:
parent
876f87e4be
commit
17feda4608
@ -3,6 +3,12 @@ from fontTools.feaLib.location import FeatureLibLocation
|
||||
import re
|
||||
import os
|
||||
|
||||
try:
|
||||
import cython
|
||||
except ImportError:
|
||||
# if cython not installed, use mock module with no-op decorators and types
|
||||
from fontTools.misc import cython
|
||||
|
||||
|
||||
class Lexer(object):
|
||||
NUMBER = "NUMBER"
|
||||
|
3
setup.py
3
setup.py
@ -74,6 +74,9 @@ if with_cython is True or (with_cython is None and has_cython):
|
||||
ext_modules.append(
|
||||
Extension("fontTools.varLib.iup", ["Lib/fontTools/varLib/iup.py"]),
|
||||
)
|
||||
ext_modules.append(
|
||||
Extension("fontTools.feaLib.lexer", ["Lib/fontTools/feaLib/lexer.py"]),
|
||||
)
|
||||
|
||||
extras_require = {
|
||||
# for fontTools.ufoLib: to read/write UFO fonts
|
||||
|
Loading…
x
Reference in New Issue
Block a user