未验证 提交 9da38a2d 编写于 作者: W Wang Xin 提交者: GitHub

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

上级 7804c8e8
......@@ -19,7 +19,8 @@ import os
import platform
import sys
from setuptools import distutils
import setuptools
from distutils import ccompiler
from setuptools import Extension
from setuptools import setup
......@@ -75,7 +76,7 @@ def compile_test(header, library):
# hack compile to support parallel compiling
distutils.ccompiler.CCompiler.compile = parallelCCompile
ccompiler.CCompiler.compile = parallelCCompile
FILES = glob.glob('kenlm/util/*.cc') \
+ glob.glob('kenlm/lm/*.cc') \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册