diff --git a/appveyor.py b/appveyor.py index c99fd5fce..90a9f0c2f 100755 --- a/appveyor.py +++ b/appveyor.py @@ -1,6 +1,5 @@ import os import sys -import urllib.request from datetime import datetime appcast_ver = os.environ.get('APPVEYOR_BUILD_VERSION') @@ -38,6 +37,7 @@ def write_appcast(appcast_os, appcast_rid, appcast_file): os.system("del *.xml 2>&1") + import urllib.request urllib.request.urlretrieve("https://www.nuget.org/api/v2/package/Microsoft.AI.DirectML/1.12.0", "Microsoft.AI.DirectML.nupkg") os.system("mkdir Microsoft.AI.DirectML") os.system("tar -xf Microsoft.AI.DirectML.nupkg -C Microsoft.AI.DirectML")