Fix accidental creation of js/ directory under site-packages/ when installing Plotly#5587
Merged
Fix accidental creation of js/ directory under site-packages/ when installing Plotly#5587
js/ directory under site-packages/ when installing Plotly#5587Conversation
2 tasks
camdecoster
approved these changes
May 1, 2026
Contributor
|
Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Link to issue
Closes #5584
Description of change
Fixes issue since Plotly 6.7.0, introduced by #5540, where
pip install plotlywould unintentionally create ajs/directory undersite-packages/, interfering with any other package which might use thejs/name.Demo
N/A
Testing strategy
To reproduce the issue:
pip install plotly==6.7.0(oruv pip install ...)$VENV_ROOT/lib/pythonX.Y/site-packages/jsTo verify that this PR fixes the issue:
python -m buildfrom the root folder, and make sure it runs without errordist/plotly-6.7.0.tar.gzanddist/plotly-6.7.0-py3-none-any.whlfiles are createdpip install dist/plotly-6.7.0-py3-none-any.whl$VENV_ROOT/lib/pythonX.Y/site-packages/jsDOES NOT exist$VENV_ROOT/share/jupyter/labextensions/jupyterlab-plotly/install.jsonDOES exist.whlfile path with the.tar.gzfile pathGuidelines