GithubHelp home page GithubHelp logo

Comments (7)

mlubin avatar mlubin commented on August 18, 2024

Should we say that the newest Mosek.jl only supports the latest Mosek?

Yes, that's certainly reasonable for now.

Is there a way to automatically force redownload, even if the url has not changed (but the actual file has)?

Not really, I've been complaining about this for quite a long time: JuliaPackaging/BinDeps.jl#26. What you can do is add a validator for the library that checks if the version is correct (e.g, https://github.com/JuliaOpt/GLPK.jl/blob/master/deps/build.jl#L11) and then print a useful error message instructing users to remove old directory in the case where an old library is found.

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

I have gone over the install script and simplified it a lot: Instead of unpacking and copying the libraries, I managed to just let the library path point to the right place. This means that I can add aliases for both 7.0 and 7.1 libraries, without knowing which actual libraries are present, which in turn means that it will work, even if you do not update the mosek binaries to 7.1. When we get to Mosek 8.0 we will switch the installer to 8.0 and require binaries to be updated.

I think the best way to fix the distro re-download problem is to write a relacement for BinDeps' download-and-unpack functionality (basically: let the downloader save a timestamp, when rebuilding, fetch the timestamp and compare to the old, re-download if not up to date). Should be simple enough.

from mosek.jl.

mlubin avatar mlubin commented on August 18, 2024

Sounds good! You shouldn't feel tied to using BinDeps. It has a number of significant limitations, and we've moved away from it entirely in the Gurobi wrapper.

from mosek.jl.

tkelman avatar tkelman commented on August 18, 2024

You could try something like the tag-file approach that Steven Johnson is using in his small Blosc package: https://github.com/stevengj/Blosc.jl/blob/master/deps/build.jl

from mosek.jl.

ccoffrin avatar ccoffrin commented on August 18, 2024

Bumping this becouse Mosek 8 is out now. :-)

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

I will see if I can get the tagging scheme to work.

I will probably also stop supporting other MOSEK versions that the newest in main branch.

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

The build script now writes a file under deps/ with the version of the currently installed MOSEK distro. Running Pkg.build("Mosek") again will check this against the latest version online and re-download if necessary.
If you use an external MOSEK that was not initially installed by the build script, new versions will not be downloaded.

from mosek.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.