Skip to content

Commit 1bb4994

Browse files
committed
Update
[ghstack-poisoned]
1 parent 205413d commit 1bb4994

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.ci/scripts/wheel/pre_build_script.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ pushd extension/llm/tokenizers
1717
git submodule update --init
1818
popd
1919

20+
# On Windows, enable symlinks and re-checkout the current revision to create
21+
# the symlinked src/ directory. This is needed to build the wheel.
22+
UNAME_S=$(uname -s)
23+
if [[ $UNAME_S == *"MINGW"* || $UNAME_S == *"MSYS"* ]]; do
24+
echo "Enabling symlinks on Windows"
25+
git config core.symlinks true
26+
git checkout -f HEAD
27+
fi
28+
2029
# Manually install build requirements because `python setup.py bdist_wheel` does
2130
# not install them. TODO(dbort): Switch to using `python -m build --wheel`,
2231
# which does install them. Though we'd need to disable build isolation to be

0 commit comments

Comments
 (0)