Skip to content

Commit 1bd31c4

Browse files
committed
Revert back to pre GH-127430
1 parent 78f13d4 commit 1bd31c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/sysconfig/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ def _print_config_dict(d, stream):
161161

162162

163163
def _get_pybuilddir():
164-
return f'build/lib.{get_platform()}-{get_python_version()}'
164+
pybuilddir = f'build/lib.{get_platform()}-{get_python_version()}'
165+
if hasattr(sys, "gettotalrefcount"):
166+
pybuilddir += '-pydebug'
167+
return pybuilddir
165168

166169

167170
def _get_json_data_name():

0 commit comments

Comments
 (0)