From 65ed7552b1e9d1955f0589a2a99d05f1f80932c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Richart?= Date: Fri, 29 Sep 2023 17:09:53 +0200 Subject: [PATCH] try to fix windows ci --- build/setup.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/build/setup.sh b/build/setup.sh index a9447deb199..2463a9c4fb9 100755 --- a/build/setup.sh +++ b/build/setup.sh @@ -21,12 +21,15 @@ install_binary_deps() { case $OSTYPE in linux*) install_linux_binary_deps + install_python_deps ;; darwin*) install_macos_binary_deps + install_python_deps ;; msys) install_windows_binary_deps + install_windows_python_deps ;; *) echo "Unknown operating system $OSTYPE" >&2 @@ -44,6 +47,16 @@ install_python_deps() { stringcase } +install_windows_python_deps() { + python3 -m venv .venv + source .venv/Scripts/activate # Activate the virtual environment + pip install wheel # Ensure you have wheel installed + pip install lz4 --platform win_amd64 # Specify the platform name + pip install pyelftools --platform win_amd64 # Specify the platform name + pip install pypng --platform win_amd64 # Specify the platform name + pip install stringcase --platform win_amd64 # Specify the platform name +} + install_macos_binary_deps() { if ! [ -x "$(command -v git)" ]; then xcode-select --install @@ -119,5 +132,4 @@ init_git_pre_push_hook() { } install_binary_deps -install_python_deps init_git_pre_push_hook