Skip to content

Include python/src headers in installation artifacts#9847

Merged
peterbell10 merged 4 commits into
triton-lang:mainfrom
abrown:fix-exported-headers-again
Apr 24, 2026
Merged

Include python/src headers in installation artifacts#9847
peterbell10 merged 4 commits into
triton-lang:mainfrom
abrown:fix-exported-headers-again

Conversation

@abrown
Copy link
Copy Markdown
Contributor

@abrown abrown commented Mar 25, 2026

#9626 added a way to construct custom ops by depending on python/src/ir.h, a header not present in the installation artifacts (#9534) used for building plugins in triton-ext. If we don't want to move this header to a directory already packaged up by CMake (#9826), we could additionally package up the headers in the python directory instead: this change does exactly that.

In doing so, it also exposed another problem in how we package up these installation artifacts. We currently only package up files ending in *.h, so Dump.hpp and GetEnv.hpp were not included. To fix this, this change renames these files to Dump.h and GetEnv.h which seems more in line with the rest of the project.

abrown added 3 commits April 15, 2026 10:47
This currently copies over the following headers to the installation
artifacts:
- `build/install/include/python/src/passes.h`
- `build/install/include/python/src/ir.h`
- `build/install/include/python/triton/experimental/gsan/src/GSan.h`
The `Dump.hpp` and `GetEnv.hpp` files were not being included in the
installation artifacts because of their file extension: `.hpp` instead
of `.h`. This renames this to have an extension more in line with other
headers in the project.
@abrown abrown force-pushed the fix-exported-headers-again branch from 487d903 to 85ea850 Compare April 15, 2026 17:47
@abrown abrown requested a review from lezcano as a code owner April 15, 2026 17:47
@lezcano lezcano requested a review from peterbell10 April 23, 2026 07:32
@peterbell10 peterbell10 enabled auto-merge (squash) April 24, 2026 09:40
@peterbell10 peterbell10 merged commit 27c4028 into triton-lang:main Apr 24, 2026
17 of 18 checks passed
@abrown abrown deleted the fix-exported-headers-again branch April 24, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants