-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
setup.py should not select install directory based on uid #389
Comments
Yeah, good point,
|
Adding a different use case, but same result: One may want to use EasyInstall (for --prefix= and --install-dir= purposes). It's not possible with the current setup.
|
thiell
added a commit
to thiell/clustershell
that referenced
this issue
Dec 7, 2022
- remove root exception handling - include man pages as data_files - check for config files in sys.prefix/etc/clustershell - if $CLUSTERSHELL_CFGDIR is defined, always try it first This allows clustershell to be installed as user in a venv using pip install or using pip install --user with man pages. Root installation using pip is now discouraged. If done, /usr/local is likely to be used as the install prefix. Fixes cea-hpc#389.
thiell
added a commit
that referenced
this issue
Dec 7, 2022
- remove root exception handling - include man pages as data_files - check for config files in sys.prefix/etc/clustershell - if $CLUSTERSHELL_CFGDIR is defined, always try it first This allows clustershell to be installed as user in a venv using pip install or using pip install --user with man pages. Root installation using pip is now discouraged. If done, /usr/local is likely to be used as the install prefix. Fixes #389.
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Trying to solve #384, I realized that config file directory path was selected based on effective uid. This is done, on purpose, to work around an issue with pip. As the comment said, it also apply to rpmbuild. This is wrong.
RPM should be build without root permissions, for a lot of reason, this is really good practices when building RPMs.
mock
(Fedora, EPEL, ...) does this by example.With this kind of trick, building RPMS ends with config file being put in
/usr/etc/clustershell
when run by user.I do not remember the original Pip issue. But this fix now impacts normal
rpmbuild
and pip with Windows (#384). We need to fix (#170) differently.The text was updated successfully, but these errors were encountered: