Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/177644
Note: Links to docs will display an error until the docs builds have been completed. ❌ 14 New FailuresAs of commit d0964a4 with merge base 3659a40 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Handles post-build steps: TORCH_STABLE_ONLY header wrapping, compile_commands.json merging, bundled license generation, Windows export library installation, and macOS OpenMP embedding. Replaces the equivalent logic from setup.py's build_ext.run(). Remove header wrapping, compile_commands merging, and Windows export library copying from setup.py — these are now handled by cmake/PostBuildSteps.cmake. The macOS _embed_libomp method stays because the cmake version has only a simplified stub. The concat_license_files class and bdist_wheel/sdist overrides stay because setuptools uses a different license bundling mechanism (temporarily concatenating the root LICENSE file during wheel/sdist creation). Co-Generated with [Claude Code](https://claude.com/claude-code) ghstack-source-id: 61ce781 Pull-Request: #177644
Handles post-build steps: TORCH_STABLE_ONLY header wrapping, compile_commands.json merging, bundled license generation, Windows export library installation, and macOS OpenMP embedding. Replaces the equivalent logic from setup.py's build_ext.run(). Remove header wrapping, compile_commands merging, and Windows export library copying from setup.py — these are now handled by cmake/PostBuildSteps.cmake. The macOS _embed_libomp method stays because the cmake version has only a simplified stub. The concat_license_files class and bdist_wheel/sdist overrides stay because setuptools uses a different license bundling mechanism (temporarily concatenating the root LICENSE file during wheel/sdist creation). Co-Generated with [Claude Code](https://claude.com/claude-code) ghstack-source-id: 61ce781 Pull-Request: #177644
Handles post-build steps: TORCH_STABLE_ONLY header wrapping, compile_commands.json merging, bundled license generation, Windows export library installation, and macOS OpenMP embedding. Replaces the equivalent logic from setup.py's build_ext.run(). Remove header wrapping, compile_commands merging, and Windows export library copying from setup.py — these are now handled by cmake/PostBuildSteps.cmake. The macOS _embed_libomp method stays because the cmake version has only a simplified stub. The concat_license_files class and bdist_wheel/sdist overrides stay because setuptools uses a different license bundling mechanism (temporarily concatenating the root LICENSE file during wheel/sdist creation). Co-Generated with [Claude Code](https://claude.com/claude-code) ghstack-source-id: 61ce781 Pull-Request: #177644
Handles post-build steps: TORCH_STABLE_ONLY header wrapping, compile_commands.json merging, bundled license generation, Windows export library installation, and macOS OpenMP embedding. Replaces the equivalent logic from setup.py's build_ext.run(). Remove header wrapping, compile_commands merging, and Windows export library copying from setup.py — these are now handled by cmake/PostBuildSteps.cmake. The macOS _embed_libomp method stays because the cmake version has only a simplified stub. The concat_license_files class and bdist_wheel/sdist overrides stay because setuptools uses a different license bundling mechanism (temporarily concatenating the root LICENSE file during wheel/sdist creation). Co-Generated with [Claude Code](https://claude.com/claude-code) ghstack-source-id: 61ce781 Pull-Request: pytorch#177644
Handles post-build steps: TORCH_STABLE_ONLY header wrapping, compile_commands.json merging, bundled license generation, Windows export library installation, and macOS OpenMP embedding. Replaces the equivalent logic from setup.py's build_ext.run(). Remove header wrapping, compile_commands merging, and Windows export library copying from setup.py — these are now handled by cmake/PostBuildSteps.cmake. The macOS _embed_libomp method stays because the cmake version has only a simplified stub. The concat_license_files class and bdist_wheel/sdist overrides stay because setuptools uses a different license bundling mechanism (temporarily concatenating the root LICENSE file during wheel/sdist creation). Co-Generated with [Claude Code](https://claude.com/claude-code) ghstack-source-id: 61ce781 Pull-Request: #177644
Handles post-build steps: TORCH_STABLE_ONLY header wrapping, compile_commands.json merging, bundled license generation, Windows export library installation, and macOS OpenMP embedding. Replaces the equivalent logic from setup.py's build_ext.run(). Remove header wrapping, compile_commands merging, and Windows export library copying from setup.py — these are now handled by cmake/PostBuildSteps.cmake. The macOS _embed_libomp method stays because the cmake version has only a simplified stub. The concat_license_files class and bdist_wheel/sdist overrides stay because setuptools uses a different license bundling mechanism (temporarily concatenating the root LICENSE file during wheel/sdist creation). Co-Generated with [Claude Code](https://claude.com/claude-code) ghstack-source-id: b3adcba Pull-Request: #177644
Handles post-build steps: TORCH_STABLE_ONLY header wrapping, compile_commands.json merging, bundled license generation, Windows export library installation, and macOS OpenMP embedding. Replaces the equivalent logic from setup.py's build_ext.run(). Remove header wrapping, compile_commands merging, and Windows export library copying from setup.py — these are now handled by cmake/PostBuildSteps.cmake. The macOS _embed_libomp method stays because the cmake version has only a simplified stub. The concat_license_files class and bdist_wheel/sdist overrides stay because setuptools uses a different license bundling mechanism (temporarily concatenating the root LICENSE file during wheel/sdist creation). Co-Generated with [Claude Code](https://claude.com/claude-code) ghstack-source-id: 630604c Pull-Request: #177644
Handles post-build steps: TORCH_STABLE_ONLY header wrapping, compile_commands.json merging, bundled license generation, Windows export library installation, and macOS OpenMP embedding. Replaces the equivalent logic from setup.py's build_ext.run(). Remove header wrapping, compile_commands merging, and Windows export library copying from setup.py — these are now handled by cmake/PostBuildSteps.cmake. The macOS _embed_libomp method stays because the cmake version has only a simplified stub. The concat_license_files class and bdist_wheel/sdist overrides stay because setuptools uses a different license bundling mechanism (temporarily concatenating the root LICENSE file during wheel/sdist creation). Co-Generated with [Claude Code](https://claude.com/claude-code) ghstack-source-id: 354f998 Pull-Request: #177644
Handles post-build steps: TORCH_STABLE_ONLY header wrapping, compile_commands.json merging, bundled license generation, Windows export library installation, and macOS OpenMP embedding. Replaces the equivalent logic from setup.py's build_ext.run(). Remove header wrapping, compile_commands merging, and Windows export library copying from setup.py — these are now handled by cmake/PostBuildSteps.cmake. The macOS _embed_libomp method stays because the cmake version has only a simplified stub. The concat_license_files class and bdist_wheel/sdist overrides stay because setuptools uses a different license bundling mechanism (temporarily concatenating the root LICENSE file during wheel/sdist creation). Co-Generated with [Claude Code](https://claude.com/claude-code) ghstack-source-id: 5b61f9f Pull-Request: #177644
Handles post-build steps: TORCH_STABLE_ONLY header wrapping, compile_commands.json merging, bundled license generation, Windows export library installation, and macOS OpenMP embedding. Replaces the equivalent logic from setup.py's build_ext.run(). Remove header wrapping, compile_commands merging, and Windows export library copying from setup.py — these are now handled by cmake/PostBuildSteps.cmake. The macOS _embed_libomp method stays because the cmake version has only a simplified stub. The concat_license_files class and bdist_wheel/sdist overrides stay because setuptools uses a different license bundling mechanism (temporarily concatenating the root LICENSE file during wheel/sdist creation). Co-Generated with [Claude Code](https://claude.com/claude-code) ghstack-source-id: 6c24b56 Pull-Request: #177644
|
From one more Claude iteration. Review findings — most → least important: |
Move TORCH_STABLE_ONLY header wrapping and compile_commands.json merging from setup.py's build_ext to cmake/PostBuildSteps.cmake. Co-Generated with [Claude Code](https://claude.com/claude-code) ghstack-source-id: 237b93e Pull-Request: pytorch#177644
|
Walked both AI reviews. Addressed in fixups; the rest dismissed with reasoning: Addressed
Dismissed (parity with old behavior or non-issue)
Mis-attributed to other PRs
|
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Move TORCH_STABLE_ONLY header wrapping and compile_commands.json merging from setup.py's build_ext to cmake/PostBuildSteps.cmake. Co-Generated with [Claude Code](https://claude.com/claude-code) ghstack-source-id: 8a46c7a Pull-Request: pytorch#177644
Merge failedReason: 3 jobs have failed, first few of them are: linux-binary-manywheel / manywheel-py3_13-rocm7_1-build / build, linux-binary-manywheel / manywheel-py3_12-rocm7_1-build / build, linux-binary-manywheel / manywheel-py3_12-rocm7_2-build / build Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -f "Failures unrelated" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…77644) Adds `cmake/PostBuildSteps.cmake` with two post-build steps previously handled by `setup.py`'s `build_ext.run()`: - **`TORCH_STABLE_ONLY` header wrapping** — runs `tools/wrap_headers.py` at install time to add guards to installed headers. Headers wrapped this way error when included with `TORCH_STABLE_ONLY` or `TORCH_TARGET_VERSION` defined. - **`compile_commands.json` merging** — runs `tools/merge_compile_commands.py` as a build target to combine compile commands from cmake build subdirectories into a single file at the project root. Both `wrap_headers.py` and `merge_compile_commands.py` are extracted from inline code in `setup.py` into standalone scripts under `tools/`. The corresponding code is removed from `setup.py`'s `build_ext` class (97 lines removed). This creates the `PostBuildSteps.cmake` module that subsequent PRs (pytorch#180237, pytorch#180238, pytorch#180239) extend with license bundling, Windows DLL bundling, and macOS OpenMP embedding. Co-Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: pytorch#177644 Approved by: https://github.com/atalman
…77644) Adds `cmake/PostBuildSteps.cmake` with two post-build steps previously handled by `setup.py`'s `build_ext.run()`: - **`TORCH_STABLE_ONLY` header wrapping** — runs `tools/wrap_headers.py` at install time to add guards to installed headers. Headers wrapped this way error when included with `TORCH_STABLE_ONLY` or `TORCH_TARGET_VERSION` defined. - **`compile_commands.json` merging** — runs `tools/merge_compile_commands.py` as a build target to combine compile commands from cmake build subdirectories into a single file at the project root. Both `wrap_headers.py` and `merge_compile_commands.py` are extracted from inline code in `setup.py` into standalone scripts under `tools/`. The corresponding code is removed from `setup.py`'s `build_ext` class (97 lines removed). This creates the `PostBuildSteps.cmake` module that subsequent PRs (pytorch#180237, pytorch#180238, pytorch#180239) extend with license bundling, Windows DLL bundling, and macOS OpenMP embedding. Co-Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: pytorch#177644 Approved by: https://github.com/atalman
…77644) Adds `cmake/PostBuildSteps.cmake` with two post-build steps previously handled by `setup.py`'s `build_ext.run()`: - **`TORCH_STABLE_ONLY` header wrapping** — runs `tools/wrap_headers.py` at install time to add guards to installed headers. Headers wrapped this way error when included with `TORCH_STABLE_ONLY` or `TORCH_TARGET_VERSION` defined. - **`compile_commands.json` merging** — runs `tools/merge_compile_commands.py` as a build target to combine compile commands from cmake build subdirectories into a single file at the project root. Both `wrap_headers.py` and `merge_compile_commands.py` are extracted from inline code in `setup.py` into standalone scripts under `tools/`. The corresponding code is removed from `setup.py`'s `build_ext` class (97 lines removed). This creates the `PostBuildSteps.cmake` module that subsequent PRs (pytorch#180237, pytorch#180238, pytorch#180239) extend with license bundling, Windows DLL bundling, and macOS OpenMP embedding. Co-Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: pytorch#177644 Approved by: https://github.com/atalman
…77644) Adds `cmake/PostBuildSteps.cmake` with two post-build steps previously handled by `setup.py`'s `build_ext.run()`: - **`TORCH_STABLE_ONLY` header wrapping** — runs `tools/wrap_headers.py` at install time to add guards to installed headers. Headers wrapped this way error when included with `TORCH_STABLE_ONLY` or `TORCH_TARGET_VERSION` defined. - **`compile_commands.json` merging** — runs `tools/merge_compile_commands.py` as a build target to combine compile commands from cmake build subdirectories into a single file at the project root. Both `wrap_headers.py` and `merge_compile_commands.py` are extracted from inline code in `setup.py` into standalone scripts under `tools/`. The corresponding code is removed from `setup.py`'s `build_ext` class (97 lines removed). This creates the `PostBuildSteps.cmake` module that subsequent PRs (pytorch#180237, pytorch#180238, pytorch#180239) extend with license bundling, Windows DLL bundling, and macOS OpenMP embedding. Co-Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: pytorch#177644 Approved by: https://github.com/atalman
Stack from ghstack (oldest at bottom):
Adds
cmake/PostBuildSteps.cmakewith two post-build steps previously handled bysetup.py'sbuild_ext.run():TORCH_STABLE_ONLYheader wrapping — runstools/wrap_headers.pyat install time to add guards to installed headers. Headers wrapped this way error when included withTORCH_STABLE_ONLYorTORCH_TARGET_VERSIONdefined.compile_commands.jsonmerging — runstools/merge_compile_commands.pyas a build target to combine compile commands from cmake build subdirectories into a single file at the project root.Both
wrap_headers.pyandmerge_compile_commands.pyare extracted from inline code insetup.pyinto standalone scripts undertools/. The corresponding code is removed fromsetup.py'sbuild_extclass (97 lines removed).This creates the
PostBuildSteps.cmakemodule that subsequent PRs (#180237, #180238, #180239) extend with license bundling, Windows DLL bundling, and macOS OpenMP embedding.Co-Generated with Claude Code