Skip to content

Commit 1c29b0e

Browse files
Replace usage of jaraco.collections.DictStack with collections.ChainMap
1 parent fee62ca commit 1c29b0e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

distutils/command/install.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from __future__ import annotations
66

7+
import collections
78
import contextlib
89
import itertools
910
import os
@@ -13,8 +14,6 @@
1314
from site import USER_BASE, USER_SITE
1415
from typing import ClassVar
1516

16-
import jaraco.collections
17-
1817
from ..core import Command
1918
from ..debug import DEBUG
2019
from ..errors import DistutilsOptionError, DistutilsPlatformError
@@ -432,12 +431,12 @@ def finalize_options(self) -> None: # noqa: C901
432431
local_vars['userbase'] = self.install_userbase
433432
local_vars['usersite'] = self.install_usersite
434433

435-
self.config_vars = jaraco.collections.DictStack([
436-
fw.vars(),
437-
compat_vars,
438-
sysconfig.get_config_vars(),
434+
self.config_vars = collections.ChainMap(
439435
local_vars,
440-
])
436+
sysconfig.get_config_vars(),
437+
compat_vars,
438+
fw.vars(),
439+
)
441440

442441
self.expand_basedirs()
443442

0 commit comments

Comments
 (0)