Fix a few ccache cache miss (#2573)

* Fix ccache cache miss

* Do not define _VERSION_ in python bindings
This commit is contained in:
Cheng
2025-09-09 07:41:05 +09:00
committed by GitHub
parent e5a33f2223
commit a44b27f5f8
5 changed files with 7 additions and 9 deletions

View File

@@ -121,7 +121,8 @@ class CMakeBuild(build_ext):
build_args += [f"-j{os.cpu_count()}"]
# Avoid cache miss when building from temporary dirs.
os.environ["CCACHE_BASEDIR"] = os.path.abspath(self.build_temp)
os.environ["CCACHE_BASEDIR"] = os.path.realpath(self.build_temp)
os.environ["CCACHE_NOHASHDIR"] = "true"
subprocess.run(
["cmake", ext.sourcedir, *cmake_args], cwd=build_temp, check=True