fix AttributeError module 'distutils' has no attribute 'ccompiler'

pull/2745/head
greatx 3 years ago
parent 7804c8e8f3
commit 9398a91696

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

Loading…
Cancel
Save