mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +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
|
@ -12,7 +12,7 @@ import sys, os, string, re
|
|||
from types import *
|
||||
from distutils.core import Command
|
||||
from distutils.errors import *
|
||||
from distutils.sysconfig import customize_compiler
|
||||
from distutils.sysconfig import customize_compiler, get_python_version
|
||||
from distutils.dep_util import newer_group
|
||||
from distutils.extension import Extension
|
||||
from distutils import log
|
||||
|
@ -184,7 +184,7 @@ class build_ext (Command):
|
|||
if string.find(sys.executable, sys.exec_prefix) != -1:
|
||||
# building third party extensions
|
||||
self.library_dirs.append(os.path.join(sys.prefix, "lib",
|
||||
"python" + sys.version[:3],
|
||||
"python" + get_python_version(),
|
||||
"config"))
|
||||
else:
|
||||
# building python standard extensions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue