-
Notifications
You must be signed in to change notification settings - Fork 502
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
Remove usage of environment variables in wheel building #9583
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/9583
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 2 Pending, 2 Unrelated FailuresAs of commit 69a5ba4 with merge base 7248b19 ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
d1a3972
to
578e720
Compare
578e720
to
4c96f33
Compare
4c96f33
to
93f6112
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comment
6949e35
to
5501b06
Compare
b989433
to
36ae47e
Compare
63c33b8
to
a5e6fcf
Compare
a5e6fcf
to
69a5ba4
Compare
Summary
We seem to be using a combination of CMAKE_ARGS and environment variables when creating wheels. Ultimately, CMake only uses the cmake args, however we redefine some of these flags as env vars to help
setup.py
determine if a certain feature is turned on. Specifically, it looks for pybinding vars to bundle pybindings.Let's remove this redundancy and just use the CMAKE_ARGS as the single source of truth. For more details and other considerations, see #9494 (abandoned).
Note that even in the wheel building jobs, we use cmake args instead of environment variables to control features:
executorch/.ci/scripts/wheel/envvar_base.sh
Line 20 in 644b7dd
executorch/.ci/scripts/wheel/envvar_macos.sh
Lines 14 to 15 in 644b7dd
Test plan
build + check CMakeCache.txt to ensure flags are set
cc @larryliu0820 @lucylq