-
Notifications
You must be signed in to change notification settings - Fork 30
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
Potentially change lib check to a warning #163
Comments
@joaquimg sorry for pinging you, but I was wondering if you have any opinion on this. Are there specific reasons for enforcing the license at installation time? |
you can do Another option is not to have Xpress as a dependency but allow it as a solver parameter to be passed. Like JuMP does. This seems reasonable since you are allowing users to choose. |
The reason for enforcing is that most users just use defaults that should be very easy to handle: default install + quick check if |
If I may expand on @ttonelli's request... if If the error is changed to a warning, nothing changes for Xpress.jl -- it is still left unbuilt. However, for a package that has Xpress.jl as a dependency, building can proceed. Hence the request that the |
I don't want to diverge from @odow invited here. If we end up changing the standard in the jump-dev org I would accept PR's. Meanwhile, If this is about a julia package intended for julia users, you pass the If you want to deploy something like a compiled binary, you can set that env var right before calling julia, either on a shell(like) script or enve in the c-caller program. |
I'm not going to change. We've had a few requests for this over the years. Pros
Cons
AlternativesIf you have If you have
As an example of the second option:
Don't use Note that you can have multiple Julia packages in the same Git repository: |
I will close this as wontfix, as its the current standard in the ecosystem. |
Just to make sure that I understand this comment -- if the |
Yes. If you fork and do that change, you should be fine. You users might have some difficulty make sure everything is ok, just like jump users used to... |
The choice is whether to error on import Pkg; Pkg.add("Xpress") # Errors Changing that to a warn could mean import Pkg; Pkg.add("Xpress") # Works
using Xpress # Errors Or even import Pkg; Pkg.add("Xpress") # Works
using Xpress # Works
Xpress.Optimizer() # Fails |
Right, this is where I'm not seeing the distinction:
At this level, the The error does not uninstall the package --
No, the This is why it seems to me that the only difference is in dependency-based addition of the package. |
Thanks for maintaining this package, it is super helpful!
So, the default build process currently raises an error if
XPRESSDIR
does not point to a valid Xpress installation. Is there any chance we could change theerror
call to be a@warning
instead?I understand we can set the
XPRESS_JL_SKIP_LIB_CHECK
env variable to skip that check. But I am working on a package that depends onXpress.jl
(and other solvers), and I don't want to force every user of my package to have to set this variable. If the default is to skip the check, then they can install my package and will only have an issue if they tried to actually use the Xpress integration, which should be fine if they don't have it installed.Thanks for considering this!
The text was updated successfully, but these errors were encountered: