File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -576,6 +576,7 @@ def __init__(
576
576
self .command_line_arguments = command_line_arguments
577
577
self .env = env
578
578
self ._defaults = defaults
579
+ self ._image_warnings = set [str ]()
579
580
580
581
self .reader = OptionsReader (
581
582
None if defaults else self .config_file_path ,
@@ -775,19 +776,24 @@ def _compute_build_options(self, identifier: str | None) -> BuildOptions:
775
776
# default to manylinux2014
776
777
image = pinned_images ["manylinux2014" ]
777
778
elif config_value in pinned_images :
778
- if config_value in {
779
- "manylinux1" ,
780
- "manylinux2010" ,
781
- "manylinux_2_24" ,
782
- "musllinux_1_1" ,
783
- }:
779
+ if (
780
+ config_value
781
+ in {
782
+ "manylinux1" ,
783
+ "manylinux2010" ,
784
+ "manylinux_2_24" ,
785
+ "musllinux_1_1" ,
786
+ }
787
+ and config_value not in self ._image_warnings
788
+ ):
789
+ self ._image_warnings .add (config_value )
784
790
msg = (
785
791
f"Deprecated image { config_value !r} . This value will not work"
786
792
" in a future version of cibuildwheel. Either upgrade to a supported"
787
793
" image or continue using the deprecated image by pinning directly"
788
794
f" to { pinned_images [config_value ]!r} ."
789
795
)
790
- log .warning (msg , deduplicate = True )
796
+ log .warning (msg )
791
797
image = pinned_images [config_value ]
792
798
else :
793
799
image = config_value
You can’t perform that action at this time.
0 commit comments