-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unneeded __init__ function #222
Conversation
Last time I checked, this was needed for people to be able to provide custom binaries: https://jump.dev/JuMP.jl/stable/developers/custom_solver_binaries/ Otherwise, the path is hard-coded into the package during precompilation. I should take another look. |
Could we fix this by something like |
See the discussion in jump-dev/ECOS.jl#134 |
I'll also add that you're unlikely to be able to statically compile any of the MOI solvers because they almost all have type instabilities in various places. What are you trying to do (and how)? |
Oh I see, I assumed it was just an outdated pattern, I hadn't seen it before. I'd be surprised if it was still needed though, using PackageCompiler with JLLs works well, and I think it's mainly JLLWrappers that takes care of these cases working. The BinaryBuilder docs also don't mention it. Though I haven't verified.
I'm kicking the tires on JuliaLang/julia#55047. I went from the trivial hello.jl directly to the water resources model I'm working on: https://github.com/Deltares/Ribasim, to get a sense of what is needed. Perhaps this step is a bit too large though, good to have a heads up about the type instabilities. |
It's for the following cases: PackageCompiler
The solution is to have Custom binaries
The solution again is to have
I would be very surprised if you could statically compile your water model. JuMP is not type stable. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #222 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 1317 1313 -4
=========================================
- Hits 1317 1313 -4 ☔ View full report in Codecov by Sentry. |
I don't think that's quite right - That's different than
|
All I know is that this was needed for jump-dev/ECOS.jl#134. I'm quite reticent to make any changes that are needed for an as-yet unreleased feature of Julia. Especially when there are many other parts of JuMP, MOI, and the solvers that are not type stable. |
Right, this was needed for jump-dev/ECOS.jl#134 because that was doing
Totally fair - no comments from me there. Only wanted to clarify what's going on with the relocatability weirdness here. |
Ahhhhhh. I missed that we were originally doing I guess we can try this and see if anyone complains. |
I should add that I'm totally fine if you prefer not to merge this. At this point I'm mainly interested since I also maintain several JLL wrapper packages and care about relocatability. |
I think I'm okay merging this, now that @topolarity has helpfully pointed out the |
I'm playing around with static compilation. This seemed easy enough to fix, to avoid: