Skip to content
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

Access sysconfig paths through pyodide config CLI #14

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
Next Next commit
Access sysconfig paths through CLI entry point
agriyakhetarpal committed Jul 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 23045dce4cc4065703e912b3b25f80dee15ae9c8
12 changes: 12 additions & 0 deletions pyodide_build/cli/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sysconfig

import typer

from ..build_env import get_build_environment_vars, get_pyodide_root, init_environment
@@ -19,6 +21,16 @@
"meson_cross_file": "MESON_CROSS_FILE",
}

# Load the values of sysconfig.get_paths() with a
# "pyodide_sysconfig_" prefix to differentiate them
# from other configuration variables
PYODIDE_CONFIGS.update(
{
f"pyodide_sysconfig_{k}": v
for k, v in sysconfig.get_paths().items()
}
)


@app.callback(no_args_is_help=True)
def callback() -> None: