This is an automated email from the ASF dual-hosted git repository. taolv pushed a commit to branch v1.x in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/v1.x by this push: new de481d3 Julia: remove downloading of the non-ASF binary build (#18489) (#18503) de481d3 is described below commit de481d3fdd266fb14b1673fa6fb653d3da029b2e Author: ciyong <ciyong.c...@intel.com> AuthorDate: Mon Jun 8 22:13:40 2020 +0800 Julia: remove downloading of the non-ASF binary build (#18489) (#18503) --- julia/deps/build.jl | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/julia/deps/build.jl b/julia/deps/build.jl index a79d2a0..5666993 100644 --- a/julia/deps/build.jl +++ b/julia/deps/build.jl @@ -111,40 +111,7 @@ using BinDeps @BinDeps.setup if !libmxnet_detected if Sys.iswindows() - if Sys.ARCH != :x86_64 - @info("Prebuilt windows binaries are only available on 64bit. You will have to built MXNet yourself.") - return - end - @info("Downloading pre-built packages for Windows.") - base_url = "https://github.com/yajiedesign/mxnet/releases/download/weekly_binary_build_v2/prebuildbase_win10_x64_vc14_v2.7z" - - if libmxnet_curr_ver == "master" - _cmd = "{ - [System.Net.ServicePointManager]::SecurityProtocol='tls12'; - Invoke-WebRequest -Uri 'https://api.github.com/repos/yajiedesign/mxnet/releases/latest' - -OutFile 'mxnet.json'}" - # download_cmd uses powershell 2, but we need powershell 3 to do this - run(`powershell -NoProfile -Command $_cmd`) - curr_win = JSON.parsefile("mxnet.json")["tag_name"] - @info("Can't use MXNet master on Windows, using latest binaries from $curr_win.") - end - # TODO: Get url from JSON. - # TODO: detect cuda version and select corresponding url. - name = "mxnet_x64_$(HAS_CUDA ? "vc141_gpu_cu101" : "vc14_cpu").7z" - package_url = "https://github.com/yajiedesign/mxnet/releases/download/$(curr_win)/$(curr_win)_$(name)" - - exe7z = joinpath(Sys.BINDIR, "7z.exe") - - run(download_cmd(package_url, "mxnet.7z")) - # this command will create the dir "usr\\lib" - run(`$exe7z e mxnet.7z *\\build\\* *\\lib\\* -y -ousr\\lib`) - - run(download_cmd(base_url, "mxnet_base.7z")) - run(`$exe7z x mxnet_base.7z -y -ousr`) - run(`cmd /c copy "usr\\prebuildbase_win10_x64_vc14_v2\\3rdparty\\bin\\*.dll" "usr\\lib"`) - - # testing - run(`cmd /c dir "usr\\lib"`) + @info("Prebuilt windows binaries is not available currently. You will have to built MXNet yourself.") return end