mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +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
|
@ -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