Skip to content
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

[DevX] Enable editable mode #7443

Merged
merged 1 commit into from
Dec 27, 2024
Merged

[DevX] Enable editable mode #7443

merged 1 commit into from
Dec 27, 2024

Conversation

larryliu0820
Copy link
Contributor

@larryliu0820 larryliu0820 commented Dec 26, 2024

Summary

Partially fixing #2871

Enable pip install -e . with local build flatc and custom ops AOT lib disabled.

Test plan

EXECUTORCH_BUILD_FLATC=OFF EXECUTORCH_BUILD_KERNELS_CUSTOM_AOT=OFF pip install -e .

Enable `pip install -e .` with local build flatc and custom ops AOT lib
disabled.
Copy link

pytorch-bot bot commented Dec 26, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7443

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 5ce5766 with merge base ed15042 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 26, 2024
@larryliu0820 larryliu0820 added the release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc. label Dec 26, 2024
@iseeyuan
Copy link
Contributor

In pip install without local, cmake build first and copy the binaries into site packages. If editable, for some reason there's no cmake build (CustomBuild), and InstallerBuildExt would error. One option is to refactor and combine CustomBuild and InstallerBuildExt.

If there's flatc in the env, no need to build flatc. Custom ops can be disabled if it's not used.

@larryliu0820 larryliu0820 merged commit fc04436 into main Dec 27, 2024
44 of 46 checks passed
@larryliu0820 larryliu0820 deleted the enable_editable branch December 27, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants