mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Issue #25985: sys.version_info is now used instead of sys.version
to format short Python version.
This commit is contained in:
parent
a9725f86a9
commit
885bdc4946
24 changed files with 56 additions and 52 deletions
|
|
@ -218,7 +218,7 @@ def main():
|
|||
ishome = os.path.exists(os.path.join(prefix, 'Python', 'ceval.c'))
|
||||
|
||||
# locations derived from options
|
||||
version = sys.version[:3]
|
||||
version = '%d.%d' % sys.version_info[:2]
|
||||
flagged_version = version + sys.abiflags
|
||||
if win:
|
||||
extensions_c = 'frozen_extensions.c'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue