On 17 August 2010 15:14, Edward K. Ream <[email protected]> wrote:
> I don't mind thinking of Leo in that way, but I'm not going to package
> Python with Leo.

OK, fair enough. However, some things need to be sorted out in that case:

1. Python version. I don't typically have multiple Python versions on
my PC, and I generally upgrade fairly rapidly to the latest version.
So for me, right now, an installer which required Python 2.6 would be
a pain, as I'm using 2.7. I can install multiple copies, but once I
do, I'm installing Python just for Leo, and I'd rather that Python
installation be bundled with Leo, as I won't be using it
independently. Ideally, the Leo installer should work with the default
Python, whatever version - unlike the current installer.
2. Migration. If I upgrade from Python 2.6 to 2.7 for reasons
unrelated to Leo, I'll presumably need to reinstall Leo as well. It
would be nice not to have to.

These goals could possibly be achieved by installing Leo in an
independent directory (chosen by the user as part of the installation)
and adding a .pth file into Python's site-packages directory (see
documentation for the site module). Then the leo script can be
installed alongside the package - so you have

    ... Program Files\Leo\
            leo.bat
            package\leo\...

leo.pth:
...\Program Files\Leo\package

(Here, ...\Program Files\Leo is replaced by whatever the user selects
in the installer).

I think that, with suitable installer know-how, the installer can have
a "Repair" option that (re-)creates the .pth file, which would allow
"moving" leo to a new installation of Python.

If I have some time, I'll try this scheme and report back. But I'm
very new to Leo (i.e., just looking into it to see if it's useful to
me at the moment!) so I wouldn't notice any subtle problems that may
arise.

Just a thought...
Paul.

-- 
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