@@ -306,11 +306,11 @@ def _input_file_to_arg(input_file):
306306def _py_wheel_impl (ctx ):
307307 abi = _replace_make_variables (ctx .attr .abi , ctx )
308308 python_tag = _replace_make_variables (ctx .attr .python_tag , ctx )
309- version = _replace_make_variables (ctx .attr .version , ctx )
309+ version_str = _replace_make_variables (ctx .attr .version , ctx )
310310
311311 filename_segments = [
312312 _escape_filename_distribution_name (ctx .attr .distribution ),
313- version .normalize (version ),
313+ version .normalize (version_str ),
314314 _escape_filename_segment (python_tag ),
315315 _escape_filename_segment (abi ),
316316 _escape_filename_segment (ctx .attr .platform ),
@@ -343,7 +343,7 @@ def _py_wheel_impl(ctx):
343343
344344 args = ctx .actions .args ()
345345 args .add ("--name" , ctx .attr .distribution )
346- args .add ("--version" , version )
346+ args .add ("--version" , version_str )
347347 args .add ("--python_tag" , python_tag )
348348 args .add ("--abi" , abi )
349349 args .add ("--platform" , ctx .attr .platform )
0 commit comments