From bd4d3b9d09f83851f0bdd2494cc8e08a7c298113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Mon, 14 Dec 2020 20:13:50 +0000 Subject: [PATCH] PEP-517: On Windows the subprocess calls don't start resolving from the PATH (#1730) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bernát Gábor --- pep-0517.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pep-0517.txt b/pep-0517.txt index ea0cc8e1b..a60bb3992 100644 --- a/pep-0517.txt +++ b/pep-0517.txt @@ -474,7 +474,8 @@ following criteria: work as a mechanism for running the flit command-line tool:: import subprocess - subprocess.check_call(["flit", ...]) + import shutil + subprocess.check_call([shutil.which("flit"), ...]) A build backend MUST be prepared to function in any environment which meets the above criteria. In particular, it MUST NOT assume that it