Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Fix deprecations #27

Merged
merged 2 commits into from
Jun 14, 2016
Merged

Fix deprecations #27

merged 2 commits into from
Jun 14, 2016

Conversation

abhijithch
Copy link
Contributor

Fixes the deprecation warnings.

@@ -9,7 +9,7 @@ else

provides(Binaries, URI("http://bitbucket.org/MDukhan/yeppp/downloads/yeppp-$ver.tar.bz2"), libyepppdep, unpacked_dir = "yeppp-$ver/binaries/windows/amd64/", os = :Windows)
provides(Binaries, URI("http://bitbucket.org/MDukhan/yeppp/downloads/yeppp-$ver.tar.bz2"), libyepppdep, unpacked_dir = "yeppp-$ver/binaries/macosx/x86_64/", os = :Darwin)
@linux_only push!(BinDeps.defaults, Binaries)
@compat @static is_linux() ? push!(BinDeps.defaults, Binaries) : nothing
Copy link
Contributor

Choose a reason for hiding this comment

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

this should also pop! back the BinDeps.defaults to what it was before when it's done

Copy link
Contributor

Choose a reason for hiding this comment

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

and shouldn't actually need @compat here, just using Compat at the top - but change the minimum required version of Compat in the REQUIRE file to the version that introduced @static and is_linux.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tkelman will the behaviour note change if we pop!, because in the original version I do not see any pop!. Thanks for the Compat suggestion, for this I assume this is the relevant PR, so the Compat version would be v0.7.19.

Copy link
Contributor

Choose a reason for hiding this comment

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

it will be a bug fix to add the pop. it should be here now but isn't.

Copy link
Contributor

Choose a reason for hiding this comment

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

also JuliaLang/Compat.jl#209 for is_linux which was 0.7.20

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @tkelman, also we need to pop! just after the installation, i.e., @BinDeps.install, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

that's right. only on linux unless there's another push! I didn't see

@tkelman tkelman merged commit c1d6b12 into JuliaMath:master Jun 14, 2016
@abhijithch abhijithch deleted the ac/depwarn branch June 27, 2016 12:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants