Corrects typos in Python buildpacks
MODIFY
repo2docker/buildpacks/python/__init__.py
repo2docker/buildpacks/python/__init__.py
@@ -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

Corrects typos in Python buildpacks