File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -673,16 +673,16 @@ def _create_stage1_bootstrap(
673673 python_binary_actual = venv .interpreter_actual_path if venv else ""
674674
675675 subs = {
676+ "%interpreter_args%" : "\n " .join ([
677+ '"{}"' .format (v )
678+ for v in ctx .attr .interpreter_args
679+ ]),
676680 "%is_zipfile%" : "1" if is_for_zip else "0" ,
677681 "%python_binary%" : python_binary_path ,
678682 "%python_binary_actual%" : python_binary_actual ,
679683 "%recreate_venv_at_runtime%" : str (int (venv .recreate_venv_at_runtime )) if venv else "0" ,
680684 "%target%" : str (ctx .label ),
681685 "%workspace_name%" : ctx .workspace_name ,
682- "%interpreter_args%" : "\n " .join ([
683- '"{}"' .format (v )
684- for v in ctx .attr .interpreter_args
685- ]),
686686 }
687687
688688 if stage2_bootstrap :
Original file line number Diff line number Diff line change 1515import sys
1616import unittest
1717
18+
1819class InterpreterArgsTest (unittest .TestCase ):
1920 def test_interpreter_args (self ):
2021 self .assertEqual (sys ._xoptions , {"SPECIAL" : "1" })
2122
23+
2224if __name__ == "__main__" :
2325 unittest .main ()
You can’t perform that action at this time.
0 commit comments