diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2022-01-30 15:25:09 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-01-30 19:09:45 -0500 |
| commit | 44649c5a483a9c1cf2d80f6e9706d581cfc7437e (patch) | |
| tree | 102db907fa8ef65280b9c3309d5de8d20a81d9a1 /setuptools/command | |
| parent | c2a75dcfb7a42616b707e0db0c5936776886c5e9 (diff) | |
| download | python-setuptools-git-44649c5a483a9c1cf2d80f6e9706d581cfc7437e.tar.gz | |
Add py_version_nodot_plat substitution support to easy_install.
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/easy_install.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 5fab0fdb..e25090b8 100644 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -260,6 +260,12 @@ class easy_install(Command): '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 |
