sinneb / pyo

Automatically exported from code.google.com/p/pyo
GNU General Public License v3.0
1 stars 0 forks source link

pyo installation does not fully obey /usr/lib/python2.6/distutils/distutils.cfg #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Put these lines in /usr/lib/python2.6/distutils/distutils.cfg 

   [install]
   prefix=/usr/local

2. Execute python setup.py install, not being root 

What is the expected output? What do you see instead?

  I would expect the installation to put all files under /usr/local, as usually do setup.py driven Python packages.

  But parts of the installed files go under /usr/lib, and should not.

What version of the product are you using? On what operating system?

  A recent pyo obtained through git svn clone.

Please provide any additional information below.

  I adjusted permissions of /usr/local so I do not need to be root for installing any Python (or non-Python) packages.  In my opinion, only exceptional circumstances should force someone to be root while installing, and indeed, root is not needed on the wide average.  pyo forces an exception to this, without any good justification that I could see (which absolutely does not mean there is none! ☺).  If there is justification however, it would be nice if it was clearly documented in the installation procedure.

  P.S. I'm very glad that pyo is usable here for me!  Thanks a lot for having created it.  Thanks also to Olivier for the recent presentation at MontrealPython.

Original issue reported on code.google.com by fpin...@gmail.com on 14 Apr 2011 at 2:24

GoogleCodeExporter commented 9 years ago
I'm not sure to understand what you want to do... setup.py retrieve the python 
lib directory (site-packages) of your python installation with :

from distutils.sysconfig import get_python_lib

And make sure all files are installed at the right place. What is the point to 
put files in /usr/local/lib if your current python is in /usr/lib ?

Original comment by belan...@gmail.com on 15 Apr 2011 at 4:33

GoogleCodeExporter commented 9 years ago

Original comment by belan...@gmail.com on 28 May 2011 at 2:35