mirror of
https://github.com/python/cpython.git
synced 2025-09-18 14:40:43 +00:00
Add the correct build dir when building with pydebug.
This commit is contained in:
parent
898f1879e1
commit
f00b38e08c
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,8 @@ def addbuilddir():
|
||||||
(especially for Guido :-)"""
|
(especially for Guido :-)"""
|
||||||
from distutils.util import get_platform
|
from distutils.util import get_platform
|
||||||
s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
|
s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
|
||||||
|
if hasattr(sys, 'gettotalrefcount'):
|
||||||
|
s += '-pydebug'
|
||||||
s = os.path.join(os.path.dirname(sys.path[-1]), s)
|
s = os.path.join(os.path.dirname(sys.path[-1]), s)
|
||||||
sys.path.append(s)
|
sys.path.append(s)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue