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
|
@ -204,7 +204,7 @@ Test cyclic gc(?)
|
|||
import os
|
||||
import sys
|
||||
from distutils.util import get_platform
|
||||
PLAT_SPEC = "%s-%s" % (get_platform(), sys.version[0:3])
|
||||
PLAT_SPEC = "%s-%d.%d" % (get_platform(), *sys.version_info[:2])
|
||||
src = os.path.join("build", "lib.%s" % PLAT_SPEC)
|
||||
sys.path.append(src)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue