kopia lustrzana https://github.com/jupyterhub/repo2docker
preassembly for pipfiles
rodzic
d6e66c886d
commit
4f3f192d2f
|
@ -65,7 +65,16 @@ class PipfileBuildPack(CondaBuildPack):
|
||||||
self._python_version = self.major_pythons["3"]
|
self._python_version = self.major_pythons["3"]
|
||||||
return self._python_version
|
return self._python_version
|
||||||
|
|
||||||
def get_assemble_scripts(self):
|
def get_preassemble_script_files(self):
|
||||||
|
"""Return files needed for preassembly"""
|
||||||
|
files = super().get_preassemble_script_files()
|
||||||
|
for name in ("requirements3.txt", "Pipfile", "Pipfile.lock"):
|
||||||
|
path = self.binder_path(name)
|
||||||
|
if os.path.exists(path):
|
||||||
|
files[path] = path
|
||||||
|
return files
|
||||||
|
|
||||||
|
def get_preassemble_scripts(self):
|
||||||
"""Return series of build-steps specific to this repository.
|
"""Return series of build-steps specific to this repository.
|
||||||
"""
|
"""
|
||||||
# If we have either Pipfile.lock, Pipfile, or runtime.txt declare the
|
# If we have either Pipfile.lock, Pipfile, or runtime.txt declare the
|
||||||
|
|
Ładowanie…
Reference in New Issue