Skip to content

Commit 44649c5

Browse files
committed
Add py_version_nodot_plat substitution support to easy_install.
1 parent c2a75dc commit 44649c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setuptools/command/easy_install.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,12 @@ def finalize_options(self): # noqa: C901 # is too complex (25) # FIXME
260260
'implementation': install._get_implementation(),
261261
})
262262

263+
# pypa/distutils#113 Python 3.9 compat
264+
self.config_vars.setdefault(
265+
'py_version_nodot_plat',
266+
getattr(sys, 'windir', '').replace('.', ''),
267+
)
268+
263269
if site.ENABLE_USER_SITE:
264270
self.config_vars['userbase'] = self.install_userbase
265271
self.config_vars['usersite'] = self.install_usersite

0 commit comments

Comments
 (0)