8000 gh-127405: Remove dead code in `sysconfig._get_pybuilddir()` by XuehaiPan · Pull Request #131935 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-127405: Remove dead code in sysconfig._get_pybuilddir() #131935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 17 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove a branch that always false
  • Loading branch information
XuehaiPan committed Mar 31, 2025
commit 2cf16e6e2ae5babd4d857c155d86a7d52d262253
5 changes: 1 addition & 4 deletions Lib/sysconfig/__main__.py
5087
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'):
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
Loading
0