File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 16
16
import sys
17
17
import tempfile
18
18
import time
19
- import warnings
20
19
from urllib .parse import urlparse
21
20
22
21
import entrypoints
@@ -267,7 +266,7 @@ def _platform_default(self):
267
266
"""
268
267
p = get_platform ()
269
268
if p == "linux/arm64" :
270
- warnings . warn (
269
+ self . log . warning (
271
270
"Building for linux/arm64 is experimental. "
272
271
"To use the recommended platform set --Repo2Docker.platform=linux/amd64. "
273
272
"To silence this warning set --Repo2Docker.platform=linux/arm64."
Original file line number Diff line number Diff line change 2
2
3
3
import os
4
4
import re
5
- import warnings
6
5
from collections .abc import Mapping
7
6
from functools import lru_cache
8
7
@@ -355,7 +354,7 @@ def uses_r(self):
355
354
@property
356
355
def py2 (self ):
357
356
"""Am I building a Python 2 kernel environment?"""
358
- warnings . warn (
357
+ self . log . warning (
359
358
"CondaBuildPack.py2 is deprecated in 2023.2. Use CondaBuildPack.separate_kernel_env." ,
360
359
DeprecationWarning ,
361
360
stacklevel = 2 ,
You can’t perform that action at this time.
0 commit comments