fix AttributeError module 'distutils' has no attribute 'ccompiler' (#2745)

pull/2748/head
Wang Xin 2 years ago committed by GitHub
parent 7804c8e8f3
commit 9da38a2db6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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') \

Loading…
Cancel
Save