Skip to content

Commit

Permalink
Merge branch 'fix/py3' of https://github.com/skleinbo/Interact.jl int…
Browse files Browse the repository at this point in the history
…o skleinbo-fix/py3

Also put ipywidgets detection in a try-catch block
  • Loading branch information
shashi committed Sep 28, 2016
2 parents c09cda9 + b28628c commit 522151c
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ function main()
return
end

ipywver = readstring(`$python -c 'import ipywidgets; print ipywidgets.__version__'`) |> strip |> VersionNumber
try
ipywver = readstring(`$python -c 'import ipywidgets; print(ipywidgets.__version__)'`) |> strip |> VersionNumber

info("ipywidgets version found: $ipywver")
if ipywver < v"5.0.0"
warn("""This version of Interact requires ipywidgets > 5.0 to work correctly.
If you have ipywidgets version 4.x, run Pkg.checkout("Interact", "ipywidgets-4").""")
else
info("A compatible version of ipywidgets was found. All good.")
info("ipywidgets version found: $ipywver")
if ipywver < v"5.0.0"
warn("""This version of Interact requires ipywidgets > 5.0 to work correctly.
If you have ipywidgets version 4.x, run Pkg.checkout("Interact", "ipywidgets-4").""")
else
info("A compatible version of ipywidgets was found. All good.")
end
catch err
warn("Could not determine ipywidgets version.")
end
end

Expand Down

0 comments on commit 522151c

Please sign in to comment.