setup.py: may use ccache.

added note.
This commit is contained in:
Steinar Foss
2019-08-09 13:02:04 +02:00
committed by Joakim Hove
parent de641d83d6
commit cf9aa917dc

View File

@@ -7,6 +7,13 @@ import setuptools
import glob
import os
import subprocess
try:
subprocess.call(['ccache', '--version'])
os.environ['CC'] = 'ccache g++'
except OSError as e:
print('\nNOTE: please install ccache for faster compilation of python bindings.\n')
if 'build' in sys.argv:
if not 'build_ext' in sys.argv: