Open Artalus opened 5 years ago
Also, if I move this check into some def main_wrapper()
and make it an entrypoint, cProfile.run
will argue that main()
is not defined. I had to replace it with cProfile.run('import clcache\nclcache.__main__.main()', ...
.
Not sure how it was supposed to work for previous 3 years since CLCACHE_PROFILE
introduction...
Apparently, because
setup.py
mentions, the
if 'CLCACHE_PROFILE' in os.environ:
check is ignored, since it is not located indef main()
. I can reproduce this on two machines that has clcache installed asclcache.exe
: one was installed from Chocolatey due to lack of MSVC 14.0, another frompip install
.