@@ -93,7 +93,7 @@ def extract(self, root="build"):
93
93
finally :
94
94
os .chdir (cwd )
95
95
96
- def execute_local (self , root = "build" , * , run_script = None , env = None ):
96
+ def execute_local (self , root = "build" , * , env = None ):
97
97
"""
98
98
Execute build plan using the local strategy. Files from the build plan are placed in
99
99
the build root directory ``root``, and, if ``run_script`` is ``True``, the script
@@ -107,25 +107,17 @@ def execute_local(self, root="build", *, run_script=None, env=None):
107
107
Returns :class:`LocalBuildProducts`.
108
108
"""
109
109
build_dir = self .extract (root )
110
- if run_script is None or run_script :
111
- if sys .platform .startswith ("win32" ):
112
- # Without "call", "cmd /c {}.bat" will return 0.
113
- # See https://stackoverflow.com/a/30736987 for a detailed explanation of why.
114
- # Running the script manually from a command prompt is unaffected.
115
- subprocess .check_call (["cmd" , "/c" , f"call { self .script } .bat" ],
116
- cwd = build_dir , env = os .environ if env is None else env )
117
- else :
118
- subprocess .check_call (["sh" , f"{ self .script } .sh" ],
119
- cwd = build_dir , env = os .environ if env is None else env )
120
- # TODO(amaranth-0.6): remove
121
- if run_script is not None :
122
- warnings .warn ("The `run_script` argument is deprecated. If you only want to "
123
- "extract the files from the BuildPlan, use the .extract() method" ,
124
- DeprecationWarning , stacklevel = 2 )
125
-
110
+ if sys .platform .startswith ("win32" ):
111
+ # Without "call", "cmd /c {}.bat" will return 0.
112
+ # See https://stackoverflow.com/a/30736987 for a detailed explanation of why.
113
+ # Running the script manually from a command prompt is unaffected.
114
+ subprocess .check_call (["cmd" , "/c" , f"call { self .script } .bat" ],
115
+ cwd = build_dir , env = os .environ if env is None else env )
116
+ else :
117
+ subprocess .check_call (["sh" , f"{ self .script } .sh" ],
118
+ cwd = build_dir , env = os .environ if env is None else env )
126
119
return LocalBuildProducts (build_dir )
127
120
128
-
129
121
def execute_local_docker (self , image , * , root = "build" , docker_args = []):
130
122
"""
131
123
Execute build plan inside a Docker container. Files from the build plan are placed in the
0 commit comments