From 421400af007291c4e8991f1a4d6402ecb6477ded Mon Sep 17 00:00:00 2001 From: Donghee Na Date: Sun, 12 May 2024 19:29:49 +0900 Subject: [PATCH] Address code review --- pyperf/_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyperf/_utils.py b/pyperf/_utils.py index cd42176f..b3ddcc87 100644 --- a/pyperf/_utils.py +++ b/pyperf/_utils.py @@ -267,8 +267,7 @@ def create_environ(inherit_environ, locale, copy_all): return os.environ env = {} copy_env = ["PATH", "HOME", "TEMP", "COMSPEC", "SystemRoot", "SystemDrive"] - # TODO: In the future, maybe we should manage CPython environment variables - # depending on the Python version. + # Python specific variables copy_env.extend(["PYTHONPATH", "PYTHON_CPU_COUNT", "PYTHON_GIL"]) if locale: copy_env.extend(('LANG', 'LC_ADDRESS', 'LC_ALL', 'LC_COLLATE',