BinDeps.jl
BinDeps.jl copied to clipboard
BuildProcess providers on Windows?
I now have a working GLPK Windows installer in an experimental branch of GLPK.jl:
https://github.com/carlobaldassi/GLPK.jl/blob/309ab10f566239f77acedb3d179b518ec741b14c/deps/build.jl
However, I had to somehow force BinDeps to accept BuildProcess
as a provider on Windows:
@windows_only push!(BinDeps.defaults, BuildProcess)
@BinDeps.install
@windows_only pop!(BinDeps.defaults)
The issue is that the compiled binaries come in a peculiar directory structure, so I have to manipulate them to install the library under usr/lib
, and I couldn't find a way to do this with a Binary
provider.
Is this acceptable (i.e. could something go wrong with the above solution)? Is there a better way to do this?
This might be better fixed by #36.
Bump. Can we change this? I hit this doing https://github.com/timholy/Images.jl/pull/165 (@carlobaldassi, thanks for the solution).
bump
I don't understand why we have to use
push!(BinDeps.defaults, BuildProcess)
on windows, see e.g. ImageMagick
?
why can't the default include BuildProcess
on Windows?
I opened a pr to change the default, however seems unlikely to be accepted, so the manual force seems like the only solution in this case. A cleaner solution should be possible either by including it as a default or via potentially another idea