-
Notifications
You must be signed in to change notification settings - Fork 579
Rename top-level build folder to simplify wheel building #9117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm in favor of this. When I first started working on ET, I ended up doing cmake builds in the build directory without thinking multiple times and making a mess. Renaming our current build/ dir seems like a good idea. |
Why is this large and daunting? Isn't this a one-time codemod in fbsource? |
We have to capture all explicit usage of However, the bigger impact would be to update our docs that reference build scripts under that folder. This will also make any external tutorials stale since those scripts will not exist. Not a huge problem, but is it worth the effort to reduce wheel building by 1-2 steps? |
We might be able to ask pip to look into a different folder than |
The problem is build is a module, and it's conflicting with our top-level folder name I tried referencing the module with relative and absolute paths, but it also throws an error:
|
So this only happens when you run |
Ah ok I just ran these commands locally and now I understand the issue. Yeah it seems there's no way around but rename |
That's a general problem. But we have a way to solve today by version. We have two versions of the doc. https://pytorch.org/executorch/main/ - that is mirror of the main branch Depending on which versions of the code that they're, users will know which version of the doc to read. |
Are there that many? |
In terms of priority, it seems like a nice-to-have but not critical Maybe a question for you instead, what does this enable moving forward |
I think on a high level it's preferred to not have a
|
Okay, then let's do this rather early than later. |
### Summary A series of diffs as a part of #9117. Move it from `./build` → `./scripts/build` ### Test plan CI cc @larryliu0820 @lucylq
Summary: As part of pytorch#9117, move the constraint targets out of `build/constraints`. Open to suggestions on a different destination. Differential Revision: D71267118
### Summary A series of diffs as a part of #9117. ### Test plan CI cc @larryliu0820 @lucylq
### Summary A series of diffs as a part of #9117. ### Test plan CI cc @larryliu0820 @lucylq
) ### Summary A series of diffs as a part of #9117. ### Test plan CI cc @larryliu0820 @lucylq
### Summary A series of diffs as a part of #9117. These are independent files, that can be safely moved without dependencies. ### Test plan CI
### Summary A series of diffs as a part of #9117. ### Test plan CI cc @larryliu0820 @lucylq
### Summary A series of diffs as a part of #9117. ### Test plan CI cc @larryliu0820 @lucylq
### Summary A series of diffs as a part of pytorch#9117. ### Test plan CI ``` $ rm -rf pip-out && python setup.py bdist_wheel ``` cc @larryliu0820 @lucylq
…ytorch#9383) ### Summary A series of diffs as a part of pytorch#9117. ### Test plan CI
### Summary A series of diffs as a part of pytorch#9117. These are independent files, that can be safely moved without dependencies. ### Test plan CI
### Summary A series of diffs as a part of pytorch#9117. ### Test plan CI cc @larryliu0820 @lucylq
### Summary A series of diffs as a part of pytorch#9117. ### Test plan CI cc @larryliu0820 @lucylq
### Summary The final diff as part of #9117. This is the big one that affects users — we finally move the core build scripts into `scripts/` ### Test plan CI cc @larryliu0820 @lucylq
@jathu Looks like you're done? Great job. One last request -- could you update the top level README file and remove the build https://github.com/pytorch/executorch/blob/main/README.md |
### Summary TSIA after #9117. ### Test plan N/A
### Summary A series of diffs as a part of pytorch#9117. ### Test plan CI cc @larryliu0820 @lucylq
…9318) ### Summary A series of diffs as a part of pytorch#9117. ### Test plan CI cc @larryliu0820 @lucylq
…torch#9319) ### Summary A series of diffs as a part of pytorch#9117. ### Test plan CI cc @larryliu0820 @lucylq
### Summary A series of diffs as a part of pytorch#9117. ### Test plan CI cc @larryliu0820 @lucylq
### Summary A series of diffs as a part of pytorch#9117. ### Test plan CI ``` $ rm -rf pip-out && python setup.py bdist_wheel ``` cc @larryliu0820 @lucylq
…ytorch#9383) ### Summary A series of diffs as a part of pytorch#9117. ### Test plan CI
### Summary A series of diffs as a part of pytorch#9117. These are independent files, that can be safely moved without dependencies. ### Test plan CI
### Summary A series of diffs as a part of pytorch#9117. ### Test plan CI cc @larryliu0820 @lucylq
### Summary A series of diffs as a part of pytorch#9117. ### Test plan CI cc @larryliu0820 @lucylq
Uh oh!
There was an error while loading. Please reload this page.
Based on the python docs, and the PyTorch wheel building workflow, building a wheel should just take the following steps:
Unfortunately, since we have a top-level folder called
build
, I think python is attempting to use that as a module — which is invalid. If we rename the folder frombuild
, we should be able to simplify our CI setup to just those steps.Although, the effort to rename the folder seems large and daunting. Is it worth the simplified workflow?
cc @larryliu0820 @lucylq
The text was updated successfully, but these errors were encountered: