Skip to content
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

LICENSE file installed under /usr/lib/python*/site-packages/LICENSE #39

Closed
asarubbo opened this issue May 26, 2023 · 3 comments · Fixed by #41
Closed

LICENSE file installed under /usr/lib/python*/site-packages/LICENSE #39

asarubbo opened this issue May 26, 2023 · 3 comments · Fixed by #41
Assignees
Labels
bug Something isn't working

Comments

@asarubbo
Copy link

Hello,

while try to packaging telegram-text for Gentoo Linux, I noticed an errors that comes from our package manager:

>>> Install dev-python/telegram-text-0.1.1 into /tmp/portage/dev-python/telegram-text-0.1.1/image
 * python3_10: running distutils-r1_run_phase distutils-r1_python_install
 * The following unexpected files/directories were found top-level
 * in the site-packages directory:
 * 
 *   /usr/lib/python3.10/site-packages/LICENSE
 * 
 * This is most likely a bug in the build system.  More information
 * can be found in the Python Guide:
 * https://projects.gentoo.org/python/guide/qawarn.html#stray-top-level-files-in-site-packages
 * ERROR: dev-python/telegram-text-0.1.1::x-portage failed (install phase):
 *   Failing install because of stray top-level files in site-packages

So atm it would install the LICENSE file as /usr/lib/python3.10/site-packages/LICENSE and it is certainly wrong.

@SKY-ALIN
Copy link
Owner

SKY-ALIN commented May 26, 2023

Hi!

Please provide more instructions of how did you install the package, package manager and virtualenv package that you used, and additional system information such as Linux distributive, version, and CPU architecture to reproduce the error

Thank you

@asarubbo
Copy link
Author

Hello, as said the issue was discovered during the packaging on Gentoo Linux, because our package manager warns about common errors.

In any case you can see the issue also while installing the package via pip install telegram-text it installs the LICENSE file as /usr/local/lib/python3.9/site-packages/LICENSE and as /usr/local/lib/python3.9/site-packages/LICENSE

 ~ # find /usr/local/ -name LICENSE
/usr/local/lib/python3.9/site-packages/telegram_text-0.1.1.dist-info/LICENSE
/usr/local/lib/python3.9/site-packages/LICENSE

 ~ # diff -ru /usr/local/lib/python3.9/site-packages/telegram_text-0.1.1.dist-info/LICENSE /usr/local/lib/python3.9/site-packages/LICENSE

 ~ # 

So the directory site-packages is supposed to contain directories of the python modules instead of strya files like LICENSE.

Hope it is clear now.

@SKY-ALIN SKY-ALIN self-assigned this May 30, 2023
@SKY-ALIN SKY-ALIN added the bug Something isn't working label May 30, 2023
@SKY-ALIN SKY-ALIN linked a pull request May 30, 2023 that will close this issue
SKY-ALIN added a commit that referenced this issue May 30, 2023
* Fix #39 

* Bump package version

* Update CHANGELOG.md

* Add publish.yml
@SKY-ALIN
Copy link
Owner

Thank you @asarubbo for submitting this issue!

The fixed release will be published today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants