You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Compatible with `pythom -m build` instead of using the deprecated
`python setup.py bdist_wheel`.
A new custom build command builds all CMake targets, and a new custom
build_ext command installs built files into the wheel.
A new custom build_py command copies platform-independent files into the
wheel instead of copying them into the source tree.
Puts all generated files under pip-out instead of mixing with files in
the tree.
Uses Command methods like `mkpath` and `copy_file` to benefit from
setuptools concepts like dry_run, and to get logging for free.
Adds `flatc` to the wheel, but doesn't yet make it available on the
path.
Test Plan:
Iteration command to test wheel building without completely rebuilding
the system:
```
rm -rf \
/tmp/wheel-out \
pip-out/lib* \
pip-out/bdist.* \
pip-out/temp.*/cmake-out/CMake* \
executorch.egg-info \
third-party/flatcc/{bin,lib} \
; \
python -m build \
--wheel --outdir /tmp/wheel-out --no-isolation
```
To fully rebuild the system, also `rm -rf pip-out`.
The wheel file is written to (e.g.)
```
/tmp/wheel-out/executorch-0.1.0-cp310-cp310-linux_x86_64.whl
```
Examine it with `unzip -l`, or install it with `pip install
/tmp/wheel-out/executorch*.whl`.
Reviewers:
Subscribers:
Tasks:
Tags:
0 commit comments