Skip to content

Commit f7d9a5b

Browse files
Revert "Disable Python compilation cache during build (#7052)" (#7054)
This reverts commit 8293be8.
1 parent b40e301 commit f7d9a5b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

scripts/mk_util.py

-7
Original file line numberDiff line numberDiff line change
@@ -2994,16 +2994,9 @@ def cp_z3py_to_build():
29942994
for f in files:
29952995
if f.endswith('.pyc'):
29962996
rmf(os.path.join(root, f))
2997-
# We do not want a second copy of the compiled files in the system-wide cache,
2998-
# so we disable it temporarily. This is an issue with recent versions of MacOS
2999-
# where XCode's Python has a cache, but the build scripts don't have access to
3000-
# it (e.g. during OPAM package installation).
3001-
pycache_prefix_before = sys.pycache_prefix
3002-
sys.pycache_prefix = None
30032997
# Compile Z3Py files
30042998
if compileall.compile_dir(z3py_src, force=1) != 1:
30052999
raise MKException("failed to compile Z3Py sources")
3006-
sys.pycache_prefix = pycache_prefix_before
30073000
if is_verbose:
30083001
print("Generated python bytecode")
30093002
# Copy sources to build

0 commit comments

Comments
 (0)