Fix issue with entry_points when installing editable #55
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.
When trying to install HyperSpy + HyperSpy plotting extensions (traitsui and ipywidgets) in editable mode, there is an issue with the entry_points.
To replicate (only tested in Ubuntu 23.10):
import hyperspy.api as hs
(which works nicely)pip3 install -e .
inhyperspy_gui_ipywidgets
project folderimport hyperspy.api as hs
This gives this error:
Specifically, it looks is the wrong folder:
When it should look in (note the underscores):
'/.../hyperspy_gui_ipywidgets/hyperspy_gui_ipywidgets/hyperspy_extension.yaml'
One way to fix this is by changing in
pyproject.toml
:``python
hyperspy-gui-ipywidgets = "hyperspy_gui_ipywidgets"
However, I am not sure how this will affect other installation methods.
Note: this also affects
hyperspy_gui_traitsui
in a similar way