Merge pull request #2943 from joakim-hove/setup-linker

Make sure env variable CC is set also if no ccache
This commit is contained in:
Markus Blatt
2022-01-27 11:37:59 +01:00
committed by GitHub

View File

@@ -25,6 +25,7 @@ try:
os.environ['CC'] = 'ccache {}'.format(cc)
print("Using 'ccache {}' as compiler".format(cc))
except OSError as e:
os.environ['CC'] = cc
print('\nNOTE: please install ccache for faster compilation of python bindings.\n')
# This is very hacky but so is the entire setup.py buildsystem.