We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 205413d commit 1bb4994Copy full SHA for 1bb4994
.ci/scripts/wheel/pre_build_script.sh
@@ -17,6 +17,15 @@ pushd extension/llm/tokenizers
17
git submodule update --init
18
popd
19
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
+
29
# Manually install build requirements because `python setup.py bdist_wheel` does
30
# not install them. TODO(dbort): Switch to using `python -m build --wheel`,
31
# which does install them. Though we'd need to disable build isolation to be
0 commit comments