Dne 7.2.2017 v 11:32 Michal Cyprian napsal(a):
----- Original Message -----
From: "Jason L Tibbitts III" <tibbs(a)math.uh.edu>
To: "Development discussions related to Fedora"
<devel(a)lists.fedoraproject.org>
Sent: Friday, January 20, 2017 6:33:36 PM
Subject: Re: F26 Self Contained Change: Making sudo pip Safe (Again)
>>>>> "JK" == Jan Kurik <jkurik(a)redhat.com> writes:
> JK> We aim to move the working directory for sudo pip3 to a more
> JK> appropriate location: /usr/local/lib/pythonX.Y/site-packages, and
> JK> modify the Python 3 interpreter in Fedora to scan both above
> JK> mentioned locations when importing modules.
> I wanted to point out a potential caveat with using /usr/local for
> things; some sites manage things under there in ways you can't really
> predict. For example, all of my machines used to rsync the entire
> /usr/local tree from a master host. Before that, it was an NFS mount.
> However, I no longer do that and I don't think Fedora would ever
> actually ship anything under /usr/local besides the few directories that
> the filesystem package creates, so I'm certainly not going to object. I
> did, however, want make sure folks were aware that we should be careful
> not to assume too much about the structure of /usr/local.
- J<
Ruby on Fedora uses /usr/local/share/gems/ for packages installed as a root
via gem tool for many years.
Since you refer to Ruby, I just want to highlight that
/usr/local/share/gems/ is for packages installed by *root* via gem too
(as you correctly said) [1]. We assume that root manages the entire
system and wants installed packages to be available system wide. I don't
expect this is widely used practice. Typical user installed packages
goes into $HOME/.gem. Is there any location similar to this? As far as I
know, our users very appreciate the possibility to do "gem install"
without administrator privileges.
Vít
[1]
http://pkgs.fedoraproject.org/cgit/rpms/ruby.git/tree/operating_system.rb...