I’m trying to get cibuildwheel working on windows. Before the wheel build, I have to build a C++ library.
Spent hours with try and error. Linux and macosx worked perfectly. Always this damn windows Can you help me navigate the path stuff?
This is the relevant code in travis.yml:
- CIBW_BEFORE_BUILD_WINDOWS="powershell wget \"http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip\" -outfile \"$HOME\\ta-lib.zip\" && 7z x \"$HOME\\ta-lib.zip\" -o\"$HOME\\ta-lib\" && Set-Location -Path \"$HOME\\ta-lib\\c\\make\\cdr\\win32\\msvc" && nmake"
The error I get:
Error Command powershell wget "http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip" -outfile "/c/Users/travis\ta-lib.zip" && 7z x "/c/Users/travis\ta-lib.zip" -o"/c/Users/travis\ta-lib" && Set-Location -Path "/c/Users/travis\ta-lib\c\make\cdr\win32\msvc failed with code 1. None
The command "python -m cibuildwheel --output-dir wheelhouse" exited with 1.
cache.2
store build cache
Done. Your build exited with 1.
wget : Could not find a part of the path 'C:\c\Users\travis\ta-lib.zip'.
At line:1 char:1
+ wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], DirectoryNotFoundException
+ FullyQualifiedErrorId : System.IO.DirectoryNotFoundException,Microsoft.PowerShell.Commands.InvokeWebRequestComma
nd
gzip: warning: GZIP environment variable is deprecated; use an alias or script