Preserve environment.
This commit is contained in:
parent
6f67102144
commit
8f2aaf30a8
1 changed files with 2 additions and 1 deletions
|
@ -463,7 +463,8 @@ class SetupPy(BuildSystem):
|
||||||
if interpreter is None:
|
if interpreter is None:
|
||||||
interpreter = self.DEFAULT_PYTHON
|
interpreter = self.DEFAULT_PYTHON
|
||||||
argv = [interpreter, "./setup.py"] + args
|
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
|
# Inherit SETUPTOOLS_SCM_PRETEND_VERSION from the current environment
|
||||||
if "SETUPTOOLS_SCM_PRETEND_VERSION" in os.environ:
|
if "SETUPTOOLS_SCM_PRETEND_VERSION" in os.environ:
|
||||||
env["SETUPTOOLS_SCM_PRETEND_VERSION"] = os.environ[
|
env["SETUPTOOLS_SCM_PRETEND_VERSION"] = os.environ[
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue