changed code so it does not automatically change qt version

This commit is contained in:
Huckleberry Febbo 2017-01-19 18:04:09 -05:00
parent cd8939fe0b
commit 43a213643b

View File

@ -55,6 +55,10 @@ function add_backend_string(::PyPlotBackend)
withenv("PYTHON" => "") do withenv("PYTHON" => "") do
Pkg.build("PyPlot") Pkg.build("PyPlot")
end end
import Conda
Conda.add("qt=4.8.5")
# now restart julia!
""" """
end end
@ -87,9 +91,8 @@ function _initialize_backend(::PyPlotBackend)
import Conda import Conda
kw = Conda._installed_packages_dict() kw = Conda._installed_packages_dict()
if (!haskey(kw,"qt") || (qt_version=get(kw,"qt",0)[1]!=v"4.8.5")) if (!haskey(kw,"qt") || (qt_version=get(kw,"qt",0)[1]!=v"4.8.5"))
print("\n Switching to qt v4.8.5!! \n") print("\n If the code has a Segmentation fault error switch to qt v4.8.5 by pasting the following code into julia: \n \n")
Conda.add("qt=4.8.5") add_backend_string(backend())
error("\n Please RESTART julia to use qt v4.8.5!! \n If we did not error here, a Segmentation fault error would occur. \n \n")
end end
end end
end end