Corrects typos in Python buildpacks
@@ -142,7 +142,7 @@ class PythonBuildPack(BaseImage):
if os.path.exists(runtime_txt):
with open(runtime_txt) as f:
runtime = f.read().strip()
- if runtime.startswith("python"):
+ if runtime.startswith("python-3"):
return True
else:
return False
@@ -252,7 +252,7 @@ class Python2BuildPack(PythonBuildPack):
if os.path.exists(requirements_txt):
assemble_scripts.append((
'${NB_USER}',
- 'pip3 install --no-cache-dir -r "{}"'.format(requirements_txt)
+ 'pip2 install --no-cache-dir -r "{}"'.format(requirements_txt)
))
return assemble_scripts
