|
|
@ -19,7 +19,8 @@ import os
|
|
|
|
import platform
|
|
|
|
import platform
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
from setuptools import distutils
|
|
|
|
import setuptools
|
|
|
|
|
|
|
|
from distutils import ccompiler
|
|
|
|
from setuptools import Extension
|
|
|
|
from setuptools import Extension
|
|
|
|
from setuptools import setup
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
|
|
|
@ -75,7 +76,7 @@ def compile_test(header, library):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# hack compile to support parallel compiling
|
|
|
|
# hack compile to support parallel compiling
|
|
|
|
distutils.ccompiler.CCompiler.compile = parallelCCompile
|
|
|
|
ccompiler.CCompiler.compile = parallelCCompile
|
|
|
|
|
|
|
|
|
|
|
|
FILES = glob.glob('kenlm/util/*.cc') \
|
|
|
|
FILES = glob.glob('kenlm/util/*.cc') \
|
|
|
|
+ glob.glob('kenlm/lm/*.cc') \
|
|
|
|
+ glob.glob('kenlm/lm/*.cc') \
|
|
|
|