-
Notifications
You must be signed in to change notification settings - Fork 607
Use "pybind" preset when building a wheel #10951
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10951
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 2 PendingAs of commit b9434fa with merge base 9c1186f ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
05c5365
to
48acde6
Compare
174fab9
to
98a3cdf
Compare
98a3cdf
to
b9434fa
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.
Thank you for making CMake much cleaner
export CMAKE_BUILD_ARGS="--target openvino_backend" | ||
|
||
# Build the package | ||
pip install . --no-build-isolation | ||
./install_executorch.sh |
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.
ah so good
subprocess.run( | ||
[ | ||
"cmake", | ||
*cmake_configuration_args, | ||
"--preset", | ||
"pybind", | ||
"-B", | ||
cmake_cache_dir, | ||
], | ||
check=True, | ||
) |
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.
Much better!
Summary
Now that we have presets for pybind, lets use that and eliminate the need to set cmake configurations in
setup.py
. Moreover, we now stop relying on defaults and fully rely on the cmake configurations. This includes relying onCMakeCache.txt
to determine what features are enabled to determine what extensions to copy.Test plan
CI +
cc @larryliu0820