Skip to content

Commit

Permalink
Remove debugging printlns from build.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly committed Aug 1, 2019
1 parent b05d805 commit 172e41d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ environment:

platform:
- x86 # 32-bit
#- x64 # 64-bit
- x64 # 64-bit

# # Uncomment the following lines to allow failures on nightly julia
# # (tests will run but not make your overall status red)
Expand Down
20 changes: 7 additions & 13 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,13 @@ if any(!satisfied(p; verbose=verbose) for p in products)
# Download and install binaries
url, tarball_hash = choose_download(download_info)
install(url, tarball_hash; prefix=prefix, force=true, verbose=true)
# we need to move the binary on windows from `prefix` to `prefix/bin`
dir = splitext(splitext(basename(url))[1])[1]
destpath = dirname(go_pprof.path)
binaryname = basename(go_pprof.path)

mkpath(destpath)
@info "installing" prefix dir destpath binaryname go_pprof.path
cp(joinpath(prefix, dir, binaryname), go_pprof.path)
iswin = BinaryProvider.platform_key_abi() isa BinaryProvider.Windows
@info "platform" BinaryProvider.platform_key_abi() iswin
@info "locating" locate(go_pprof; verbose=true)
# we need to move the unpacked binary from `prefix` to `prefix/bin`
dir = splitext(splitext(basename(url))[1])[1]
destpath = dirname(go_pprof.path)
binaryname = basename(go_pprof.path)

mkpath(destpath)
cp(joinpath(prefix, dir, binaryname), go_pprof.path)
catch e
if typeof(e) <: ArgumentError
error("Your platform $(Sys.MACHINE) is not supported by this package!")
Expand All @@ -59,5 +55,3 @@ if any(!satisfied(p; verbose=verbose) for p in products)
# Finally, write out a deps.jl file
write_deps_file(joinpath(@__DIR__, "deps.jl"), products)
end

print(stderr, readchomp(joinpath(@__DIR__, "deps.jl")))

0 comments on commit 172e41d

Please sign in to comment.