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
packaging question #2038
Comments
Actually these files are added on purpose, you can see on include of pyproject.toml. Also we are using poetry to package, not build module. |
poetry build --format wheel produces same problem. Yes I was aware that they were added on purpose - but its still bad in my view, intentional or not. When these get installed by distro package, unless action is taken to delete, they will land in /usr/lib/python3.10/site-packages where they obviously don't belong - right? Or maybe i'm missing something. They should be in their own isort sub-directory. The site-packages directory is meant for all packages not files like these belonging to isort. Might I suggest you simply move them down 1 level to: /usr/lib/python3.10/site-packages/isort/xxx In meantime, distro packages should probably delete or move them somewhere more appropriate. thanks |
@gene-git a-ha, I see now. Not sure how to change this behavior though. There is probably an issue reported on poetry then. Do you know? |
There is a simple solution after all: mkdir isort/Docs or just: Only need to remove from include section in pyporject.toml. |
@gene-git interesting, I can try. I did not find a reference to that. Do you have a link to share? |
your pyproject.toml has This is documented : https://python-poetry.org/docs/pyproject/ in Packages section. |
Thanks for working on this -but it seems still broken to me - unless I'm missing something. git rev-parse HEAD unzip -l dist/isort-5.11.2-py3-none-any.whl | head -10
|
@gene-git sorry, my fault.. I hope it is now fixed on 5.11.4 =) |
Building a wheel via : python -m build -w
2 files seem to be in wrong directory:
unzip -l dist/*.whl
Archive: dist/isort-5.11.2-py3-none-any.whl
Length Date Time Name
...
When this wheel is installed the 2 errant files land in /usr/lib/python3.10/site-packages
where they don't belong.
The text was updated successfully, but these errors were encountered: