Skip to content

Commit 8f81864

Browse files
committed
Raise error if Python 2.7 is used on arm64
1 parent cdd0d56 commit 8f81864

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

repo2docker/buildpacks/conda/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ def get_build_script_files(self):
173173
pip_frozen_name = "requirements.txt"
174174
if py_version:
175175
if self.python_version == "2.7":
176+
if "linux-64" != self._conda_platform():
177+
raise ValueError(
178+
f"Python version 2.7 {self._conda_platform()} is not supported!"
179+
)
180+
176181
# python 2 goes in a different env
177182
files[
178183
"conda/environment.py-2.7-linux-64.lock"

0 commit comments

Comments
 (0)