Remove JULIA_HOME env var for julia 1.0+
@@ -49,7 +49,7 @@ class JuliaProjectTomlBuildPack(PythonBuildPack):
a string of the environment setting:
- `JULIA_PATH`: base path where all Julia Binaries and libraries
will be installed
- - `JULIA_HOME`: path where all Julia Binaries will be installed
+ - `JULIA_BINDIR`: path where all Julia Binaries will be installed
- `JULIA_PKGDIR`: path where all Julia libraries will be installed
- `JULIA_DEPOT_PATH`: path where Julia libraries are installed.
Similar to JULIA_PKGDIR, used in 1.0.
@@ -62,10 +62,9 @@ class JuliaProjectTomlBuildPack(PythonBuildPack):
"""
return super().get_build_env() + [
('JULIA_PATH', '${APP_BASE}/julia'),
- ('JULIA_HOME', '${JULIA_PATH}/bin'), # julia <= 0.6
- ('JULIA_BINDIR', '${JULIA_HOME}'), # julia >= 0.7
+ ('JULIA_BINDIR', '${JULIA_PATH}/bin'),
('JULIA_PKGDIR', '${JULIA_PATH}/pkg'),
- ('JULIA_DEPOT_PATH', '${JULIA_PKGDIR}'), # julia >= 0.7
+ ('JULIA_DEPOT_PATH', '${JULIA_PKGDIR}'),
('JULIA_VERSION', self.julia_version),
('JUPYTER', '${NB_PYTHON_PREFIX}/bin/jupyter')
]
@@ -78,7 +77,7 @@ class JuliaProjectTomlBuildPack(PythonBuildPack):
executable is added to the list.
"""
- return super().get_path() + ['${JULIA_HOME}']
+ return super().get_path() + ['${JULIA_BINDIR}']
def get_build_scripts(self):
"""
