From 8f2aaf30a8c9c0a4ea6e0aee6bde71b9a591c72f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Sun, 16 May 2021 16:47:07 +0100 Subject: [PATCH] Preserve environment. --- ognibuild/buildsystem.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ognibuild/buildsystem.py b/ognibuild/buildsystem.py index 8fc6c69..08ac13c 100644 --- a/ognibuild/buildsystem.py +++ b/ognibuild/buildsystem.py @@ -463,7 +463,8 @@ class SetupPy(BuildSystem): if interpreter is None: interpreter = self.DEFAULT_PYTHON argv = [interpreter, "./setup.py"] + args - env = {} + # TODO(jelmer): Perhaps this should be additive? + env = dict(os.environ) # Inherit SETUPTOOLS_SCM_PRETEND_VERSION from the current environment if "SETUPTOOLS_SCM_PRETEND_VERSION" in os.environ: env["SETUPTOOLS_SCM_PRETEND_VERSION"] = os.environ[