mirror of https://github.com/pyodide/pyodide.git
Prevent backend-flags from propagating to dependencies (#3153)
This commit is contained in:
parent
90e20badd7
commit
d2fce73291
|
@ -151,6 +151,9 @@ substitutions:
|
|||
key was used for this purpose.
|
||||
{pr}`3006`
|
||||
|
||||
- {{ Fix }} Fixed a bug that `backend-flags` propagated to dependencies.
|
||||
{pr}`3153`
|
||||
|
||||
## Version 0.21.3
|
||||
|
||||
_September 15, 2022_
|
||||
|
|
|
@ -98,16 +98,9 @@ def _build_in_isolated_env(
|
|||
symlink_unisolated_packages(env)
|
||||
install_reqs(env, builder.build_system_requires)
|
||||
installed_requires_for_build = False
|
||||
# "--build-option" contains custom options that only apply to current package,
|
||||
# passing it to the dependencies may cause error.
|
||||
# e.g., lightgbm accepts "--nomp" as one of its setup.py arguments,
|
||||
# but "--nomp" isn't supported by its dependencies such as numpy, scipy, etc.
|
||||
reqs_config_settings = {
|
||||
k: v for k, v in config_settings.items() if k != "--build-option"
|
||||
}
|
||||
try:
|
||||
build_reqs = builder.get_requires_for_build(
|
||||
distribution, reqs_config_settings
|
||||
distribution,
|
||||
)
|
||||
except BuildBackendException:
|
||||
pass
|
||||
|
@ -119,7 +112,9 @@ def _build_in_isolated_env(
|
|||
if not installed_requires_for_build:
|
||||
install_reqs(
|
||||
env,
|
||||
builder.get_requires_for_build(distribution, reqs_config_settings),
|
||||
builder.get_requires_for_build(
|
||||
distribution,
|
||||
),
|
||||
)
|
||||
return builder.build(distribution, outdir, config_settings)
|
||||
|
||||
|
|
Loading…
Reference in New Issue