Skip to content

Commit bc0c675

Browse files
committed
Revert "Try fix WASM build with Py_DEBUG"
This reverts commit 1a6b81b. This reverts commit cb04312.
1 parent 1a6b81b commit bc0c675

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Lib/sysconfig/__main__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ def _print_config_dict(d, stream):
160160
print ("}", file=stream)
161161

162162

163+
def _get_pybuilddir():
164+
pybuilddir = f'build/lib.{get_platform()}-{get_python_version()}'
165+
if get_config_var('Py_DEBUG'):
166+
pybuilddir += '-pydebug'
167+
return pybuilddir
168+
169+
163170
def _get_json_data_name():
164171
name = _get_sysconfigdata_name()
165172
assert name.startswith('_sysconfigdata')
@@ -213,7 +220,7 @@ def _generate_posix_vars():
213220
module.build_time_vars = vars
214221
sys.modules[name] = module
215222

216-
pybuilddir = f'build/lib.{get_platform()}-{get_python_version()}'
223+
pybuilddir = _get_pybuilddir()
217224
os.makedirs(pybuilddir, exist_ok=True)
218225
destfile = os.path.join(pybuilddir, name + '.py')
219226

0 commit comments

Comments
 (0)