Files
ports/misc/pytorch/files/patch-tools_wrap__headers.py
2026-10-04 04:07:15 +00:00

18 lines
696 B
Python

-- Disable header wrapping to avoid filesystem violations.
-- The wrap_headers.py script attempts to modify all headers under include/,
-- which can include system headers from dependencies during the staging phase.
-- Since this is just adding compatibility guards for TORCH_STABLE_ONLY, we can safely skip it.
--- tools/wrap_headers.py.orig 2026-07-15 03:28:01 UTC
+++ tools/wrap_headers.py
@@ -38,6 +38,9 @@ def main() -> None:
include_dir = args.include_dir
if not include_dir.exists():
return
+
+ # Skip header wrapping to avoid filesystem violations
+ return
for header in sorted(include_dir.rglob("*")):
if header.suffix not in HEADER_EXTENSIONS: