Thanks so much, that's just what I was looking for, as you can imagine the "download" function is fairly hard to find by googling if you don't know what you're looking for.
-- Samuel Colvin [email protected], 07801160713 On 1 September 2014 15:27, Isaiah Norton <[email protected]> wrote: > The issue is that BinDeps wants to check whether the shared library > defined as a dependency can be 'dlopen'ed. Since this is just a js file, > that check fails. Probably easier to use the built in 'download' function. > Just put that in your pkg build file. There is an optional argument to > specify the download name. Use Pkg.dir("Bokeh") to get the base install > path. > On Sep 1, 2014 8:25 AM, "Samuel Colvin" <[email protected]> wrote: > >> I'm having some problems with BinDeps, I'm trying to do something >> extemely simple, but not finding a simple way to do it. >> >> All I want to do is download some js and css files and put them in a >> directory, however if I run the following >> >> using BinDeps >> >> @BinDeps.setup >> >> bokehjs = library_dependency("bokehjs") >> >> provides(Sources, URI("http://cdn.pydata.org/bokeh-0.5.2.min.js"), >> bokehjs, unpacked_dir="js") >> >> @BinDeps.install >> >> I get an error "None of the selected providers can install dependency >> bokehjs." If I use "Binaries" instead of source, i get "I don't know how to >> unpack..." >> >> Do i have to define some kind of fake buildprocess to satisfy BinDeps, if >> so what would it look like? >> >> What's the most sensible way of just downloading files during build? I >> know I could use another package like Requests, but I assumed that BinDeps >> was the most canonical way of doing it, is that wrong? >> >> Also what do "@BinDeps.setup" and "@BinDeps.install" do? They don't seem >> to be documented. >> >
