From ea76e4431bf25780debf24fc7b89636f1c3fffda Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sat, 15 Jul 2017 06:31:54 +0200 Subject: [PATCH] Add note about fresh subprocess per build (#308) --- pep-0517.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pep-0517.txt b/pep-0517.txt index 5fa1ff64e..1bd87a5bf 100644 --- a/pep-0517.txt +++ b/pep-0517.txt @@ -318,6 +318,9 @@ If not defined, the default implementation is equivalent to ``return []``. pick how to make an editable install? And if the frontend does, what does it need from the backend to do so. +Config settings +=============== + :: config_settings @@ -425,6 +428,10 @@ meets the above criteria. In particular, it MUST NOT assume that it has access to any packages except those that are present in the stdlib, or that are explicitly declared as build-requirements. +Frontends should call each hook in a fresh subprocess, so that backends are +free to change process global state (such as environment variables or the +working directory). A Python library will be provided which frontends can use +to easily call hooks this way. Recommendations for build frontends (non-normative) ---------------------------------------------------