In response to the thread "Leo 4.6.3 released"

On Sep 5, 6:58 pm, rhh <[email protected]> wrote:

> ...  I am unclear on why it installs to program files rather
> than site-packages.  I can't see any advantages to program
> files and site-packages seems to be a cleaner and more
> natural location for python code.

Be aware that the python "site-packages" location we have all come to
know and live by got real strange this year thanks to Ubuntu 9.04.  I
was very confused by it all until Mike Orr <[email protected]>
cleared up the whole thing in response to a question about virtualenv:

http://groups.google.com/group/python-virtualenv/browse_thread/thread/1412994580f0a2c6

A portion of the above reference is included below:

<<<
Mike Orr wrote:

Years ago Debian created /usr/local/lib/pythonVERSION/site-packages,
and compiled the Python binary to include it in the default search
path.  Ubuntu followed Debian's lead as it normally does.  The Python
developers did not like this because you'd get interference with a
locally-installed /usr/local/bin/python using the same site-packages
directory. Ubuntu finally decided to abandon site-packages and use
dist-packages instead, a name which they invented so it wouldn't
interfere with anything.  The long story is out there somewhere if you
google it, somewhere in the Python bug tracker or distutils SIG or
such.

The system works, at least if you use the Ubuntu virtualenv
package....

So Ubuntu Python packages go into /usr/lib/pythonVERSION/dist-
packages.  Or that python-support directory for some reason.  Locally-
installed Python packages go into /usr/local/lib/pythonVERSION/dist-
packages by default.

Whenever I install an Ubuntu 9.04 system I run:

$ sudo apt-get install python-setuptools   (6.0c9)
$ sudo apt-get install python-virtualenv   (1.3.3)
$ sudo easy_install pip
$ sudo pip install virtualenvwrapper
<<<

Bernie Pursley
Simsbury, CT
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to