File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ def _platform_default(self):
267
267
"""
268
268
p = get_platform ()
269
269
if p == "linux/arm64" :
270
- warnings . warn (
270
+ self . log . warning (
271
271
"Building for linux/arm64 is experimental. "
272
272
"To use the recommended platform set --Repo2Docker.platform=linux/amd64. "
273
273
"To silence this warning set --Repo2Docker.platform=linux/arm64."
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ def uses_r(self):
355
355
@property
356
356
def py2 (self ):
357
357
"""Am I building a Python 2 kernel environment?"""
358
- warnings . warn (
358
+ self . log . warning (
359
359
"CondaBuildPack.py2 is deprecated in 2023.2. Use CondaBuildPack.separate_kernel_env." ,
360
360
DeprecationWarning ,
361
361
stacklevel = 2 ,
Original file line number Diff line number Diff line change @@ -543,5 +543,4 @@ def get_platform():
543
543
# OSX reports arm64
544
544
return "linux/arm64"
545
545
else :
546
- warnings .warn (f"Unexpected platform '{ m } ', defaulting to linux/amd64" )
547
- return "linux/amd64"
546
+ raise ValueError ("Unsupported platform {m}" )
You can’t perform that action at this time.
0 commit comments