@@ -97,8 +97,8 @@ def check_dist_restriction(options, check_target=False):
97
97
"""
98
98
dist_restriction_set = any ([
99
99
options .python_version ,
100
- options .platform ,
101
- options .abi ,
100
+ options .platforms ,
101
+ options .abis ,
102
102
options .implementation ,
103
103
])
104
104
@@ -490,10 +490,10 @@ def only_binary():
490
490
)
491
491
492
492
493
- platform = partial (
493
+ platforms = partial (
494
494
Option ,
495
495
'--platform' ,
496
- dest = 'platform ' ,
496
+ dest = 'platforms ' ,
497
497
metavar = 'platform' ,
498
498
action = 'append' ,
499
499
default = None ,
@@ -583,10 +583,10 @@ def _handle_python_version(option, opt_str, value, parser):
583
583
) # type: Callable[..., Option]
584
584
585
585
586
- abi = partial (
586
+ abis = partial (
587
587
Option ,
588
588
'--abi' ,
589
- dest = 'abi ' ,
589
+ dest = 'abis ' ,
590
590
metavar = 'abi' ,
591
591
action = 'append' ,
592
592
default = None ,
@@ -601,18 +601,18 @@ def _handle_python_version(option, opt_str, value, parser):
601
601
602
602
def add_target_python_options (cmd_opts ):
603
603
# type: (OptionGroup) -> None
604
- cmd_opts .add_option (platform ())
604
+ cmd_opts .add_option (platforms ())
605
605
cmd_opts .add_option (python_version ())
606
606
cmd_opts .add_option (implementation ())
607
- cmd_opts .add_option (abi ())
607
+ cmd_opts .add_option (abis ())
608
608
609
609
610
610
def make_target_python (options ):
611
611
# type: (Values) -> TargetPython
612
612
target_python = TargetPython (
613
- platforms = options .platform ,
613
+ platforms = options .platforms ,
614
614
py_version_info = options .python_version ,
615
- abis = options .abi ,
615
+ abis = options .abis ,
616
616
implementation = options .implementation ,
617
617
)
618
618
0 commit comments