Skip to content

[DevX] Enable editable mode#7443

Merged
larryliu0820 merged 1 commit into
mainfrom
enable_editable
Dec 27, 2024
Merged

[DevX] Enable editable mode#7443
larryliu0820 merged 1 commit into
mainfrom
enable_editable

Conversation

@larryliu0820

@larryliu0820 larryliu0820 commented Dec 26, 2024

Copy link
Copy Markdown
Contributor

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.
@pytorch-bot

pytorch-bot Bot commented Dec 26, 2024

Copy link
Copy Markdown

🔗 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
Copy Markdown
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
@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