Fix missing entry points in pyproject.toml for optimum-cli export executorch #196
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the
optimum-cli export executorchcommand not being recognized after editable installation.When installing
optimum-executorchin editable mode, users encountered:Root Cause
The
pyproject.tomlwas missing the entry points configuration required foroptimumto discover and register theexecutorchexport subcommand. While the registration code existed inoptimum/commands/register/register_export.py, it was never wired up via the package's entry points.Changes
Added the missing entry points configuration to
pyproject.toml:This enables optimum-cli to discover and load the ExecuTorchExportCommand during startup.
Testing
Verified the entry point is properly registered after reinstallation: