Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Mar 11, 2024
1 parent dae129d commit 58771d8
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,34 +41,14 @@ function local_installation()
""")
end

function ci_installation()
url = if Sys.islinux()
"https://anaconda.org/fico-xpress/xpress/9.3.0/download/linux-64/xpress-9.3.0-py310ha14b774_0.tar.bz2"
else
@assert Sys.isapple()
"https://anaconda.org/fico-xpress/xpress/9.3.0/download/osx-64/xpress-9.3.0-py310h9b76c6a_0.tar.bz2"
end
Downloads.download(url, "xpress.tar.bz2")
run(`tar -xjf xpress.tar.bz2`)
root = "lib/python3.10/site-packages/xpress"
run(`cp $root/license/community-xpauth.xpr $root/lib/xpauth.xpr`)
if Sys.islinux()
run(`cp $root/lib/libxprs.so.42 $root/lib/libxprs.so`)
end
write_deps_file(joinpath(@__DIR__, root, "lib"))
return
end

if isfile(DEPS_FILE)
rm(DEPS_FILE)
end

if haskey(ENV, "XPRESS_JL_SKIP_LIB_CHECK")
if haskey(ENV, "XPRESS_JL_SKIP_LIB_CHECK") || get(ENV, "CI", "") == "true"
# Skip!
elseif get(ENV, "JULIA_REGISTRYCI_AUTOMERGE", "false") == "true"
write_deps_file("julia_registryci_automerge")
elseif get(ENV, "CI", "") == "true"
ci_installation()
else
local_installation()
end

0 comments on commit 58771d8

Please sign in to comment.