kopia lustrzana https://github.com/jupyterhub/repo2docker
26 wiersze
520 B
Julia
Executable File
26 wiersze
520 B
Julia
Executable File
#!/usr/bin/env julia
|
|
# Verify the version:
|
|
if VERSION < v"1.1.0"
|
|
exit(1)
|
|
end
|
|
|
|
try
|
|
# Test that the package was installed.
|
|
using IteratorInterfaceExtensions
|
|
|
|
# Verify that the environment variables are set correctly for julia 1.0+
|
|
@assert "julia" ∈ readdir(Sys.BINDIR)
|
|
catch
|
|
exit(1)
|
|
end
|
|
|
|
# Verify that kernels are not installed in home directory (issue #620)
|
|
try
|
|
using IJulia
|
|
@assert IJulia.kerneldir() == ENV["NB_PYTHON_PREFIX"] * "/share/jupyter/kernels"
|
|
catch
|
|
exit(1)
|
|
end
|
|
|
|
exit(0)
|