mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[Bug #550364] Use sysconfig.get_python_version()
This commit is contained in:
parent
0ff98b9346
commit
1cace1a30a
2 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ class bdist_wininst (Command):
|
|||
if not self.target_version:
|
||||
self.target_version = ""
|
||||
if self.distribution.has_ext_modules():
|
||||
short_version = sys.version[:3]
|
||||
short_version = get_python_version()
|
||||
if self.target_version and self.target_version != short_version:
|
||||
raise DistutilsOptionError, \
|
||||
"target version can only be" + short_version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue