Skip to content

Refactor wheel building script#3818

Open
zcbenz wants to merge 1 commit into
mainfrom
wheel-generation
Open

Refactor wheel building script#3818
zcbenz wants to merge 1 commit into
mainfrom
wheel-generation

Conversation

@zcbenz

@zcbenz zcbenz commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Previously the frontend/backend packages where built by outputting the files to different directories, which have the downsides that:

  1. we have to use different cmake configurations for each build;
  2. we have to remember to clear the directories between the builds;
  3. it is not a well supported approach by the toolchain and breaks sometimes.

This PR takes the approach used by PyTorch that, we do not use special cmake configuration when building, and instead we remove the unwanted files when generating wheels. While this sounds a bit fragile, it is still better than what we use, and is guaranteed to work as long as PyTorch is still doing the same.

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.

1 participant