Skip to content

Commit 9960c82

Browse files
committed
Fix: expand ~ in CCACHE_CONFIGPATH to actual home directory
- Use os.path.expanduser() to properly expand ~ in ccache config path - Fixes FileNotFoundError on macOS builds in cibuildwheel - Resolves CI failure in PR Cytnx-dev#711
1 parent 9b26304 commit 9960c82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/cibuildwheel_before_build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
tag = f'cp{sys.version_info.major}{sys.version_info.minor}'
77

88
ccache_config_path = os.getenv('CCACHE_CONFIGPATH')
9+
10+
# Expand ~ to actual home directory
11+
ccache_config_path = os.path.expanduser(ccache_config_path)
912
if not ccache_config_path:
1013
raise RuntimeError('The CCACHE_CONFIGPATH environment variable must be set.')
1114

0 commit comments

Comments
 (0)