diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2019-10-27 18:17:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-27 18:17:30 -0400 |
commit | e3068ee28f37064d08c3f55557536454be47b0cd (patch) | |
tree | a8893ab769146f3c1948dc8517aae9067ffd95f3 /setuptools/command/easy_install.py | |
parent | 230d1f74eea0dd84a022bc8cfd803256f16f3b97 (diff) | |
parent | 43add1d3f5138e38adc4940647cc6eae94fb6123 (diff) | |
download | external_python_setuptools-e3068ee28f37064d08c3f55557536454be47b0cd.tar.gz external_python_setuptools-e3068ee28f37064d08c3f55557536454be47b0cd.tar.bz2 external_python_setuptools-e3068ee28f37064d08c3f55557536454be47b0cd.zip |
Merge pull request #1824 from asottile/python310
Fixes for python3.10
Diffstat (limited to 'setuptools/command/easy_install.py')
-rw-r--r-- | setuptools/command/easy_install.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index d7b7566c..545c3c44 100644 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -241,7 +241,7 @@ class easy_install(Command): """ Render the Setuptools version and installation details, then exit. """ - ver = sys.version[:3] + ver = '{}.{}'.format(*sys.version_info) dist = get_distribution('setuptools') tmpl = 'setuptools {dist.version} from {dist.location} (Python {ver})' print(tmpl.format(**locals())) @@ -1411,7 +1411,7 @@ def get_site_dirs(): os.path.join( prefix, "lib", - "python" + sys.version[:3], + "python{}.{}".format(*sys.version_info), "site-packages", ), os.path.join(prefix, "lib", "site-python"), @@ -1432,7 +1432,7 @@ def get_site_dirs(): home, 'Library', 'Python', - sys.version[:3], + '{}.{}'.format(*sys.version_info), 'site-packages', ) sitedirs.append(home_sp) |