Skip to content

Commit 4209c24

Browse files
committed
Merge pull request #34 from JuliaOpt/2.0.4
accept ECOS 2.0.* and bump source to 2.0.4
2 parents f747102 + ffb75f9 commit 4209c24

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

deps/build.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ ecos = library_dependency("ecos", aliases=["libecos"])
1111
provides( Homebrew.HB, "ecos", ecos, os = :Darwin )
1212
end
1313

14-
version = "2.0.2"
14+
version = "2.0.4"
15+
win_version = "2.0.2"
1516
provides(Sources, URI("https://github.com/ifa-ethz/ecos/archive/v$version.tar.gz"),
1617
[ecos], os = :Unix, unpacked_dir="ecos-$version")
1718

1819
prefix = joinpath(BinDeps.depsdir(ecos),"usr")
1920
srcdir = joinpath(BinDeps.depsdir(ecos),"src","ecos-$version")
2021

21-
provides(Binaries, URI("https://cache.e.ip.saba.us/https://bintray.com/artifact/download/tkelman/generic/ecos-$version.7z"),
22+
provides(Binaries, URI("https://cache.e.ip.saba.us/https://bintray.com/artifact/download/tkelman/generic/ecos-$win_version.7z"),
2223
[ecos], unpacked_dir="usr/bin$WORD_SIZE", os = :Windows,
2324
SHA="b90254220a9a63cba08700f3664519d360f45d363454e5c107e6f30e144a60a1")
2425

src/ECOS.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ macro ecos_ccall(func, args...)
2929
end
3030
end
3131

32-
const ecos_version = "2.0.2"
33-
3432
function __init__()
35-
if ver() != ecos_version
33+
vnum = VersionNumber(ver())
34+
if !(vnum.major == 2 && vnum.minor == 0)
3635
depsdir = realpath(joinpath(dirname(@__FILE__),"..","deps"))
37-
error("Current ECOS version installed is $(ver()), but we require version $ecos_version. On Linux and Windows, delete the contents of the `$depsdir` directory except for the files `build.jl` and `.gitignore`, then rerun Pkg.build(\"ECOS\"). On OS X, run `using Homebrew; Homebrew.update()` in Julia.")
36+
error("Current ECOS version installed is $(ver()), but we require version 2.0.*. On Linux and Windows, delete the contents of the `$depsdir` directory except for the files `build.jl` and `.gitignore`, then rerun Pkg.build(\"ECOS\"). On OS X, run `using Homebrew; Homebrew.update()` in Julia.")
3837
end
3938
end
4039

0 commit comments

Comments
 (0)