Inspired by Matt's recipe, using VirtualBox throw away 1GB Windows XP
32 bit machines, I tried the following.
Install Python (installer from python.org) 2.7.2 to
C:\Docouments and Settings\someuser\Desktop\leo\python27
Install PyQt (installer from Riverbank) 4.9 into the same folder (it
goes there by default)
Unzip http://www.greygreen.org/leo/leo-editor-latest.zip into
C:\Docouments and Settings\someuser\Desktop\leo\leo-editor-latest
Make leo.zip from C:\Docouments and Settings\someuser\Desktop\leo
Delete the virtual machine, purging any registry entries etc. created
by the two installers.
On a fresh machine, searched the registry for 'python' just to be sure,
found nothing.
Unzip the .zip file, then
cd C:\Docouments and Settings\someuser\Desktop\leo
python27\python.exe leo-editor-latest\launchLeo.py
And Leo opens a blank outline, after asking for an ID, as it's supposed
to. Didn't test it beyond that.
So, the .zip file contains all Leo needs to run, and obviously
runLeo.bat could be added in the top level to actually launch it.
Cheers -Terry
> Summary - it's easy to make a .zip file containing Leo and all it's
> dependencies.
Of course this is for Windows, so I think it's an improvement over
asking people to install Python and PyQt first, but neither of those
steps was that hard in Windows anyway. I wonder if anything similar is
possible for Mac.
Cheers -Terry
I wish it were that easy. The problem is installing PyQt. I finally gave up, it wasn't worth the hassle. The only way I can run Leo on my Mac is in a Windows virtual environment.
Interesting.
Is this a technique that we could use for official Windows releases?
If so, what exactly would we do?
Edward
> Is this a technique that we could use for official Windows releases?
> If so, what exactly would we do?
I guess, perhaps as an all-in-one option with a system integrated
option for those who want to use system python/qt. Don't know if it
violates and licensing on Python / Qt, everything's being distributed
unaltered, so I wouldn't think so.
So basically you'd give people a large .zip file and tell them to
extract it to a folder and run the batchfile at the top level. If they
can't do that, they might not be ready for Leo :-) I guess you could
make it a self-extracting .zip, for that matter.
Also, the daily snapshot could be made this way, seeing once Python and
Qt are installed in the folder the Leo version can just be copied in.
It's not uncommon for FLOSS to be distributed this way, both Blender
and Inkscape use this approach, particularly for recent builds.
Cheers -Terry
> And the normal Windows install just isn't that hard, really!
I agree, I guess we're aiming at the users who move on when they see
"to install Leo, first install Python and PyQt, then..." The question
again of whether they're going to want Leo when they have it or not.
Cheers -Terry
On Jan 3, 2012, at 8:39 AM, Largo84 wrote:I wish it were that easy. The problem is installing PyQt. I finally gave up, it wasn't worth the hassle. The only way I can run Leo on my Mac is in a Windows virtual environment.What kinds of problems were you encountering?
It's been a while so my memory is a little fuzzy, but as I recall, first I had to figure out how to install the Mac development environment. Not overly difficult, but annoying. Next came SIP (I think). Then, I had to figure out how to build Qt from source (all this using command line stuff that is not intuitive for a non-programmer). Then, after all of that to find out that whatever Qt system I was trying to install wasn't compatible for some reason (don't remember the specifics). All of this using online documentation and user guides geared towards programmers. I had already spent my entire personal free time over several days just to get to this point before I finally decided that (to quote Al Pacino) 'It's too damn hard!'
PortableApps version would be FANTASTIC!! I wish I knew how to make it happen.
Summary - it's easy to make a .zip file containing Leo and all it's
dependencies.
So, the .zip file contains all Leo needs to run, and obviously
runLeo.bat could be added in the top level to actually launch it.
Summary - it's easy to make a .zip file containing Leo and all it's
dependencies.
My 2¢:
If something like this **is** done, it should IMO be packaged as an alternative to the normal installation procedure.
You would definitely get marketing exposure by getting the specs from PortableApps.com and let them host it there as "Portable Leo", tracking the "official" Portable Python (currently 2.7.2) as a dependency, obviously including QT etc as well. But it would need to be kept up to date. . .
Most Windows users would be better served by following the normal installation procedure and ending up with a registry-and-environment-variables-complete install of Python et al which they can use for other things beyond Leo. Ending up with multiple instances of Python to maintain is likely to cause more problems.
And the normal Windows install just isn't that hard, really! Improving the current instructions, by providing a step-by-step "cookbook" with direct links to the download packages etc might make it a **little** easier (IMO only for the clueless), but then of course that would be a doc that would need pretty frequent updates, which if I may be so bold doesn't seem to happen too quickly on the doc side.
On Friday, January 6, 2012 3:40:26 AM UTC+7, Largo84 wrote:A couple of versions have been posted here already, including Terry's very simple sequence in the first message of this thread. Of course, we're only talking about Windows, but note that it works equally well either syncing with whatever tool (I favor Unison over SSH) or carrying around on an arbitrary-path'd external device, including flash drives (but they can be slow).PortableApps version would be FANTASTIC!! I wish I knew how to make it happen.
Here's my more robust (hence more complex) version, xx indicating your python version (mine is 27):