2

Tried installing South sitewide with easy_install. However I'm having permission issues:

drwxr-x---   2 root root   4096 Nov  8 10:23 South-0.7.2-py2.6.egg-info

I then tried installing it with pip but received the same results.

I am assuming I could fix this by just changing the permissions. However, am I doing something wrong during installation? Or is there something wrong with the package?

Answers to comments

iddqd: Please send output. sudo pip install -e hg+http : //bitbucket.org/andrewgodwin/south/

Here is the results:

$ sudo pip-python install -e hg+http://bitbucket.org/andrewgodwin/south/
--editable=hg+http://bitbucket.org/andrewgodwin/south/ is not the right format; it must have #egg=Package
Belmin Fernandez
  • 8,307
  • 9
  • 51
  • 75

1 Answers1

6

It could be your user and/or root have a specific umask which creates files with those permissions such as 0027.

% umask
027
% sudo touch /tmp/foo
% ls -l /tmp/foo
-rw-r-----  1 root  wheel  0 Nov  8 08:19 /tmp/foo
% umask 002
% touch /tmp/bar
% ls -al /tmp/bar
-rw-r--r--  1 root  wheel  0 Nov  8 08:23 /tmp/bar
dietbuddha
  • 8,556
  • 1
  • 30
  • 34
  • You are correct---umask=027. Thanks. So is there another option for having python libraries installed correctly sitewide other than changing root's umask from 027 to 002? – Belmin Fernandez Nov 08 '10 at 18:07
  • If you install with sudo you inherit whatever umask your user has, not what root's umask is. – dietbuddha Nov 10 '10 at 02:30
  • Thank you. What a headache this was. Putting "umask 002" in /etc/profile or in your *shrc will persist the change. – Alice Jan 31 '14 at 20:01