From 35e1c9d4d788094c254485dfdefa0c24cd5820ee Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 6 Nov 2020 15:31:19 -0500 Subject: [PATCH] In spawn, when logging a command, use list2cmdline to render the command as it would be used, restoring expectation lost in python/cpython#18743. Ref pypa/setuptools#2417 where this change was a red-herring for another issue. --- distutils/spawn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distutils/spawn.py b/distutils/spawn.py index fc592d4a..a73b8b9b 100644 --- a/distutils/spawn.py +++ b/distutils/spawn.py @@ -40,7 +40,7 @@ def spawn(cmd, search_path=1, verbose=0, dry_run=0, env=None): # in, protect our %-formatting code against horrible death cmd = list(cmd) - log.info(' '.join(cmd)) + log.info(subprocess.list2cmdline(cmd)) if dry_run: return