Skip to content
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

Merged
merged 2 commits into from
Aug 14, 2017

Conversation

mweastwood
Copy link
Member

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.

REQUIRE Outdated
@@ -1,3 +1,4 @@
julia 0.5
BinDeps 0.3.12
Compat 0.17.0
@osx Homebrew
Copy link
Member

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!

@kbarbary
Copy link
Member

Do you know, if an OSX user doesn't have homebrew, will build-from-source still be used?

@mweastwood
Copy link
Member Author

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.

@kbarbary
Copy link
Member

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()
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@kbarbary kbarbary merged commit 2e0b8f3 into JuliaAstro:master Aug 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants