conda install occurs in preassemble

pull/743/head
Min RK 2019-07-16 08:36:06 +02:00
rodzic 5b12e072b1
commit 70878082f6
1 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -178,19 +178,19 @@ class CondaBuildPack(BaseImage):
"""Am I building a Python 2 kernel environment?""" """Am I building a Python 2 kernel environment?"""
return self.python_version and self.python_version.split(".")[0] == "2" return self.python_version and self.python_version.split(".")[0] == "2"
def get_assemble_files(self): def get_preassemble_script_files(self):
"""Specify that assembly only requires environment.yml """preassembly only requires environment.yml
enables caching assembly result even when enables caching assembly result even when
repo contents change repo contents change
""" """
assemble_files = super().get_assemble_files() assemble_files = super().get_preassemble_script_files()
environment_yml = self.binder_path('environment.yml') environment_yml = self.binder_path("environment.yml")
if os.path.exists(environment_yml): if os.path.exists(environment_yml):
assemble_files.append(environment_yml) assemble_files[environment_yml] = environment_yml
return assemble_files return assemble_files
def get_assemble_scripts(self): def get_preassemble_scripts(self):
"""Return series of build-steps specific to this source repository. """Return series of build-steps specific to this source repository.
""" """
assembly_scripts = [] assembly_scripts = []
@ -209,7 +209,7 @@ class CondaBuildPack(BaseImage):
), ),
) )
) )
return super().get_assemble_scripts() + assembly_scripts return super().get_preassemble_scripts() + assembly_scripts
def detect(self): def detect(self):
"""Check if current repo should be built with the Conda BuildPack. """Check if current repo should be built with the Conda BuildPack.