Add JULIA_BINDDIR environment variable for julia v0.7+

Add tests for the ENVIRONMENT VARIABLES to the julia unit tests.
pull/393/head
Nathan Daly 2018-09-30 22:20:22 -04:00
rodzic 55b84234f2
commit 7fbb0f9964
3 zmienionych plików z 10 dodań i 3 usunięć

Wyświetl plik

@ -71,7 +71,8 @@ class JuliaBuildPack(CondaBuildPack):
"""
return super().get_build_env() + [
('JULIA_PATH', '${APP_BASE}/julia'),
('JULIA_HOME', '${JULIA_PATH}/bin'),
('JULIA_HOME', '${JULIA_PATH}/bin'), # julia <= 0.6
('JULIA_BINDIR', '${JULIA_HOME}'), # julia >= 0.7
('JULIA_PKGDIR', '${JULIA_PATH}/pkg'),
('JULIA_VERSION', self.julia_version),
('JUPYTER', '${NB_PYTHON_PREFIX}/bin/jupyter')

Wyświetl plik

@ -4,9 +4,12 @@ if VERSION < v"1"
exit(1)
end
# Test that the package was installed.
try
# Test that the package was installed.
using Compat
# Verify that the environment variables are set correctly for julia 1.0+
@assert "julia" ∈ readdir(Sys.BINDIR)
catch
exit(1)
end

Wyświetl plik

@ -4,9 +4,12 @@ if VERSION != v"0.6.3"
exit(1)
end
# Test that the package was installed.
try
# Test that the package was installed.
using Compat
# Verify that the environment variables are set correctly for julia <= 0.6
@assert "julia" ∈ readdir(Base.JULIA_HOME)
catch
exit(1)
end