kopia lustrzana https://github.com/jupyterhub/repo2docker
Fix calls to julia_env_exists
rodzic
36ade7430c
commit
0b1e6e60f0
|
@ -24,7 +24,7 @@ class JuliaBuildPack(PythonBuildPack):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def julia_version(self):
|
def julia_version(self):
|
||||||
if self.julia_env_exists():
|
if self.julia_env_exists:
|
||||||
# TODO Read version out of the file
|
# TODO Read version out of the file
|
||||||
return self.major_julias['1']
|
return self.major_julias['1']
|
||||||
else:
|
else:
|
||||||
|
@ -106,7 +106,7 @@ class JuliaBuildPack(PythonBuildPack):
|
||||||
(from get_assemble_scripts).
|
(from get_assemble_scripts).
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if self.julia_env_exists():
|
if self.julia_env_exists:
|
||||||
return super().get_build_scripts() + [
|
return super().get_build_scripts() + [
|
||||||
(
|
(
|
||||||
"root",
|
"root",
|
||||||
|
@ -167,8 +167,7 @@ class JuliaBuildPack(PythonBuildPack):
|
||||||
any needed Python packages found in environment.yml.
|
any needed Python packages found in environment.yml.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if self.julia_env_exists():
|
if self.julia_env_exists:
|
||||||
return super().get_assemble_scripts() + [(
|
|
||||||
"${NB_USER}",
|
"${NB_USER}",
|
||||||
# Install and pre-compile all libraries if they've opted into it.
|
# Install and pre-compile all libraries if they've opted into it.
|
||||||
# In v0.6, Pkg.resolve() installs all the packages, but in v0.7+, we
|
# In v0.6, Pkg.resolve() installs all the packages, but in v0.7+, we
|
||||||
|
@ -216,4 +215,4 @@ class JuliaBuildPack(PythonBuildPack):
|
||||||
`JuliaProject.toml` exists
|
`JuliaProject.toml` exists
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return os.path.exists(self.binder_path('REQUIRE')) or self.julia_env_exists()
|
return os.path.exists(self.binder_path('REQUIRE')) or self.julia_env_exists
|
||||||
|
|
Ładowanie…
Reference in New Issue