Skip to content

Commit 4f3f192

Browse files
committed
preassembly for pipfiles
1 parent d6e66c8 commit 4f3f192

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

repo2docker/buildpacks/pipfile/__init__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,16 @@ def python_version(self):
6565
self._python_version = self.major_pythons["3"]
6666
return self._python_version
6767

68-
def get_assemble_scripts(self):
68+
def get_preassemble_script_files(self):
69+
"""Return files needed for preassembly"""
70+
files = super().get_preassemble_script_files()
71+
for name in ("requirements3.txt", "Pipfile", "Pipfile.lock"):
72+
path = self.binder_path(name)
73+
if os.path.exists(path):
74+
files[path] = path
75+
return files
76+
77+
def get_preassemble_scripts(self):
6978
"""Return series of build-steps specific to this repository.
7079
"""
7180
# If we have either Pipfile.lock, Pipfile, or runtime.txt declare the

0 commit comments

Comments
 (0)