Skip to content

Commit

Permalink
Add py_version_nodot_plat substitution support to easy_install.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 31, 2022
1 parent c2a75dc commit 44649c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setuptools/command/easy_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ def finalize_options(self): # noqa: C901 # is too complex (25) # FIXME
'implementation': install._get_implementation(),
})

# pypa/distutils#113 Python 3.9 compat
self.config_vars.setdefault(
'py_version_nodot_plat',
getattr(sys, 'windir', '').replace('.', ''),
)

if site.ENABLE_USER_SITE:
self.config_vars['userbase'] = self.install_userbase
self.config_vars['usersite'] = self.install_usersite
Expand Down

0 comments on commit 44649c5

Please sign in to comment.