-
Notifications
You must be signed in to change notification settings - Fork 29
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
use Homebrew.jl to grab cfitsio on OSX #78
Conversation
REQUIRE
Outdated
@@ -1,3 +1,4 @@ | |||
julia 0.5 | |||
BinDeps 0.3.12 | |||
Compat 0.17.0 | |||
@osx Homebrew |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, did not know this was legal syntax in REQUIRE!
Do you know, if an OSX user doesn't have homebrew, will build-from-source still be used? |
Homebrew.jl is using is doing its own thing. It doesn't install things globally using the system Homebrew installation so I don't believe having Homebrew is a pre-req for this (Homebrew.jl is though). If this is merged, I think it will always be preferred to the build-from-source method on OSX. On the plus side though, it means other packages that need libcfitsio (ie. LibHealpix.jl) can use the same installation. |
I see. Seems OK to me, but I'm not on a mac. I guess we can always change it if people have problems using Homebrew.jl. Does anyone with a mac have an opinion? |
deps/build.jl
Outdated
@@ -62,6 +62,12 @@ if is_windows() | |||
push!(BinDeps.defaults, BuildProcess) | |||
end | |||
|
|||
# OSX | |||
if is_apple() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add
using Compat.Sys: iswindows, isapple, isunix
after the using Compat
line and replace all is_<os>
with is<os>
. You should also rise Compat
version to 0.29.0 in REQUIRE
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
I don't have easy access to a Mac so this is untested. Hopefully Travis comes back with a green light.
This might fix some of the issues reported in mweastwood/LibHealpix.jl#38, but I think this is a good idea regardless.