mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03: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'
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ option to produce this format (since it is the original v7 Unix format).
|
|||
"""
|
||||
import os, sys
|
||||
|
||||
PYTHONLIB = 'libpython'+sys.version[:3]+'.a'
|
||||
PC_PYTHONLIB = 'Python'+sys.version[0]+sys.version[2]+'.dll'
|
||||
PYTHONLIB = 'libpython%d.%d.a' % sys.version_info[:2]
|
||||
PC_PYTHONLIB = 'Python%d%d.dll' % sys.version_info[:2]
|
||||
NM = 'nm -p -g %s' # For Linux, use "nm -g %s"
|
||||
|
||||
def symbols(lib=PYTHONLIB,types=('T','C','D')):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue