From f0759803a39942a50ab1b6d774cc60aa3141159e Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Fri, 30 Apr 2021 22:41:19 +0100 Subject: [PATCH] fix: occasional nuget error (#653) * Try some things to debug Travis failures * Perhaps there is a config file * Update .travis.yml * Update .travis.yml * Add -FallbackSource to nuget invocation * Update windows.py * Tidy things up --- cibuildwheel/windows.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index cff10794..4e40d00e 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -44,7 +44,12 @@ def get_nuget_args(version: str, arch: str) -> List[str]: python_name = 'python' if version[0] == '3' else 'python2' if arch == '32': python_name += 'x86' - return [python_name, '-Version', version, '-OutputDirectory', 'C:\\cibw\\python'] + return [ + python_name, + '-Version', version, + '-FallbackSource', 'https://api.nuget.org/v3/index.json', + '-OutputDirectory', 'C:\\cibw\\python', + ] class PythonConfiguration(NamedTuple):