diff --git a/jaraco/vcs/subprocess.py b/jaraco/vcs/subprocess.py index 8814c61..5f5bdb6 100644 --- a/jaraco/vcs/subprocess.py +++ b/jaraco/vcs/subprocess.py @@ -1,6 +1,8 @@ import os import subprocess +from jaraco.collections import Mask + from . import base from . import cmd @@ -44,9 +46,7 @@ def env(self): in which `hg` is installed, it will cause an exception. See https://github.com/jaraco/jaraco.vcs/issues/7 for details. """ - env = os.environ.copy() - env.pop('MACOSX_DEPLOYMENT_TARGET', None) - return env + return Mask(['MACOSX_DEPLOYMENT_TARGET'], os.environ) class Git(Subprocess, cmd.Git, base.Repo): diff --git a/setup.cfg b/setup.cfg index faa7f9a..9044e7b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,6 +22,7 @@ install_requires = jaraco.classes more_itertools jaraco.versioning + jaraco.collections [options.packages.find] exclude =