Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

create setup.py and support system wide installation #415

Closed
blshkv opened this issue Sep 21, 2020 · 4 comments
Closed

create setup.py and support system wide installation #415

blshkv opened this issue Sep 21, 2020 · 4 comments

Comments

@blshkv
Copy link

blshkv commented Sep 21, 2020

setup.py was there in the previous release 5.1.0 but it is gone in the latest 5.1.1 for some reason.

This is a common problem that many tools which we want to distribute do not support system wide installation. Many of these tools provide their own "install.sh" or "setup.sh" with a distro specific commands (sudo apt-install) instead of a proper setup.py.
Once created, an end user can install it using the following command:
python3 setup.py install --user

The end result, a FHS compliant directory structure should be created.
In case if software produce any output, a local user directory should be used, such as ~.//

There are some custom cases (installing non-python packages, data files etc) which have been resolved in other packages. Bellow, are reference points on such bug reports with solutions (patches)

pentoo/pentoo-overlay#596

@blshkv
Copy link
Author

blshkv commented Sep 22, 2020

7725a69

@blshkv
Copy link
Author

blshkv commented Sep 22, 2020

hm... it looks like there is a workaround for Gentoo but it was not enrolled yet:
https://blogs.gentoo.org/mgorny/2019/12/24/handling-pep-517-pyproject-toml-packages-in-gentoo/

@mpgn
Copy link
Contributor

mpgn commented Sep 22, 2020

it looks like there is a workaround for Gentoo
so it's fixed ?

@blshkv
Copy link
Author

blshkv commented Sep 22, 2020

ok, I think it does work. Let's close this bug for now. Thanks for your attention!

@mpgn mpgn closed this as completed Sep 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants