Merge pull request #50 from yuvipanda/julia-verify

Validate that Julia is using our pre-installed conda
pull/51/head
Yuvi Panda 2017-07-30 11:38:00 -07:00 zatwierdzone przez GitHub
commit f444ffe8b6
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -380,7 +380,7 @@ class BuildPack(LoggingConfigurable):
src_path = os.path.join(os.path.dirname(__file__), 'files', *src_parts)
tar.add(src_path, src, filter=_filter_tar)
tar.add('.', 'src/')
tar.add('.', 'src/', filter=_filter_tar)
tar.close()
tarf.seek(0)

Wyświetl plik

@ -1,6 +1,13 @@
#!/usr/bin/env julia
# We try to plot something, and see if the file saved exists
using PyPlot
# Make sure we are re-using the same conda python
if PyCall.libpython != "/srv/conda/lib/libpython3.6m"
println("Not re-using conda python! Using " * PyCall.libpython * " instead")
exit(1)
end
# We try to plot something, and see if the file saved exists
x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x))
plot(x, y, color="red", linewidth=2.0, linestyle="--")
savefig("graph.png")