-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_maturin_wrapper.py
More file actions
32 lines (29 loc) · 920 Bytes
/
Copy path_maturin_wrapper.py
File metadata and controls
32 lines (29 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""
Build backend wrapper for maturin that suppresses RUST_LOG to prevent
INFO-level span close events from being printed to stdout after the wheel path,
which would cause maturin's Python wrapper to misidentify the log line as the path.
"""
import os
os.environ.setdefault("RUST_LOG", "warn")
if os.environ.get("RUST_LOG", "warn").lower() == "info":
os.environ["RUST_LOG"] = "warn"
from maturin import (
build_editable,
build_sdist,
build_wheel,
get_requires_for_build_editable,
get_requires_for_build_sdist,
get_requires_for_build_wheel,
prepare_metadata_for_build_editable,
prepare_metadata_for_build_wheel,
)
__all__ = [
"build_editable",
"build_sdist",
"build_wheel",
"get_requires_for_build_editable",
"get_requires_for_build_sdist",
"get_requires_for_build_wheel",
"prepare_metadata_for_build_editable",
"prepare_metadata_for_build_wheel",
]