aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-08-02 09:39:57 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-08-02 09:39:57 -0400
commit0bb6c6bc47823764649430fca34fc6475c0a42d7 (patch)
tree3f70c5c0b0bf41a58e32e7f55b9e05e47d8b7305
parent39b30e15365756ae685e02b5af38799a677858af (diff)
downloadexternal_python_setuptools-0bb6c6bc47823764649430fca34fc6475c0a42d7.tar.gz
external_python_setuptools-0bb6c6bc47823764649430fca34fc6475c0a42d7.tar.bz2
external_python_setuptools-0bb6c6bc47823764649430fca34fc6475c0a42d7.zip
In CCompiler, allow keyword arguments to be passed to spawn calls. Ref pypa/setuptools#2257 and pypa/distutils#5.
-rw-r--r--distutils/ccompiler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/distutils/ccompiler.py b/distutils/ccompiler.py
index b5ef143e..57bb94e8 100644
--- a/distutils/ccompiler.py
+++ b/distutils/ccompiler.py
@@ -906,8 +906,8 @@ int main (int argc, char **argv) {
def execute(self, func, args, msg=None, level=1):
execute(func, args, msg, self.dry_run)
- def spawn(self, cmd):
- spawn(cmd, dry_run=self.dry_run)
+ def spawn(self, cmd, **kwargs):
+ spawn(cmd, dry_run=self.dry_run, **kwargs)
def move_file(self, src, dst):
return move_file(src, dst, dry_run=self.dry_run)