BinDeps.jl icon indicating copy to clipboard operation
BinDeps.jl copied to clipboard

Force provider choice

Open barche opened this issue 8 years ago • 3 comments

For CxxWrap, I provide Windows binaries, but to build those I always comment the following line: https://github.com/barche/CxxWrap.jl/blob/master/deps/build.jl#L119

Obviously, I just made the mistake of forgetting to uncomment before committing. Is there a more elegant way to choose between building and downloading, maybe with an option to Pkg.build? I guess I could also use an environment variable?

barche avatar Apr 18 '16 21:04 barche

You can modify or rearrange BinDeps.defaults to change the ordering, but restore it to what it was at the end of your deps.jl script if you do this.

tkelman avatar Apr 18 '16 22:04 tkelman

OK, works for me, thanks.

barche avatar Apr 19 '16 20:04 barche

Sorry for reopening this, but I just found out that when the build command fails it doesn't fall back to binary download, the build simply stops indicating that it failed to create the library. Script: https://github.com/barche/CxxWrap.jl/blob/master/deps/build.jl

Is there some option to set that it should try Binaries if SimpleBuild fails? The BinDeps.defaults contains only [SimpleBuild, Binaries] here

barche avatar Apr 30 '16 19:04 barche