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
This commit is contained in:
Joe Rickerby
2021-04-30 17:41:19 -04:00
committed by GitHub
parent 75af5944f5
commit f0759803a3
+6 -1
View File
@@ -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):