The command
xcopy "$SITEPACKAGES\\google" "build\\lib\\google" /i /e /h
fails with Invalid number of parameters
on Windows on AppVeyor (Visual Studio 2019).
I’ve confirmed the correct syntax of the command in my Windows virtual machine on my computer where the command works as expected, and I’ve confirmed the correct setting of the $SITEPACKAGES
variable and the escaped backslashes by echoing the same line: echo "$SITEPACKAGES\\google" "build\\lib\\google" /i /e /h
produces C:\Python37-x64\Lib\site-packages\google build\lib\google /i /e /h
, now with the quotes not showing anymore as expected.
The command is run from a shell schript as a normal command from appveyor.yml
like so:
build_script:
- cmd: "sh wxPython/build/Windows/build-all.sh"
I’ve also tried not to escape the backslashes, but with same result.
I'm lost. Any ideas?
I believe there are some backslashes missing, as you can see from my attempts:
Anyway, I'd advise to make sure you always have double quotes around your paths, you never know when a space might arrive in a directory's name.