Procházet zdrojové kódy

Always build Rust extension in release mode (#14009)

Fixes #13990
tags/v1.69.0rc1
Erik Johnston před 1 rokem
committed by GitHub
rodič
revize
343038c3c3
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
2 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. +3
    -0
      build_rust.py
  2. +1
    -0
      changelog.d/14009.bugfix

+ 3
- 0
build_rust.py Zobrazit soubor

@@ -15,6 +15,9 @@ def build(setup_kwargs: Dict[str, Any]) -> None:
path=cargo_toml_path,
binding=Binding.PyO3,
py_limited_api=True,
# We force always building in release mode, as we can't tell the
# difference between using `poetry` in development vs production.
debug=False,
)
setup_kwargs.setdefault("rust_extensions", []).append(extension)
setup_kwargs["zip_safe"] = False

+ 1
- 0
changelog.d/14009.bugfix Zobrazit soubor

@@ -0,0 +1 @@
Fix bug where Rust extension wasn't built in `release` mode when using `poetry install`.

Načítá se…
Zrušit
Uložit