Skip to content
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Lib/sysconfig/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,7 @@ def _print_config_dict(d, stream):


def _get_pybuilddir():
pybuilddir = f'build/lib.{get_platform()}-{get_python_version()}'
if get_config_var('Py_DEBUG') == '1':
pybuilddir += '-pydebug'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any way for this to be called, but I note that this behavior is tied to

pydebug = lib_dir.endswith("-pydebug")

I think this aspect of the WASM build is broken, and if this code can be deleted then perhaps that trail can too.

return pybuilddir
return f'build/lib.{get_platform()}-{get_python_version()}'


def _get_json_data_name():
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove dead code in function ``sysconfig._get_pybuilddir``. Patch by Xuehai Pan.
Loading