Now for the good stuff! I followed a wiki post and got an old Pyjamas version working. The old Pyjamas version was missing some features, so I figured out a way to build the latest version from scratch. For documentation purposes, here are the steps I followed on Windows XP:
- Download and run a Python 2.6 installer (here’s a link to the latest: http://www.python.org/download/releases/2.6.6/)
- Install comtypes 0.6.1. (comtypes-0.6.1.win32.exe in http://sourceforge.net/projects/comtypes/files/comtypes/0.6.1/)
- Permanently update the path for Python (and Pyjamas while you’re at it)
- Go to System Properties through Control Panel
- Open the Advanced tab, then click on the Environmental Variables button
- Add the following to your “PATH” system variable: c:\python26;c:\Pyjamas\pyjs\bin; (the 2nd dir will exist after you install pyjamas)
- Install Git for Windows (If you have Git skip this step)
- Install msygit from http://code.google.com/p/msysgit/downloads/detail?name=Git-22.214.171.124-preview20101002.exe&can=2&q= B
- Install TortisGit from http://code.google.com/p/tortoisegit/downloads/detail?name=TortoiseGit-126.96.36.199-32bit.msi&can=2&q=
- Git the latest Pyjamas code.
- Create a directory C:\Pyjamas\
- Open an explorer window, and navigate to the C:\ drive.
- Right click on the Pyjamas directory and select Git Clone.
- Enter the URL: https://github.com/pyjs/pyjs.git
- Open a new command line (this has to be done after updating the path):
- > cd C:\Pyjamas\pyjs
- > python bootstrap.py Note: The bootstrap won’t print anything to the screen, but it will create the bin directory (which was added to your path in step 3)
- > cd C:\Pyjamas\pyjs
- Now test an application:
- > cd examples\helloworld
- > python
- Use Firefox or IE and open output\Hello.html Note: Chome won’t load AJAX pages off your local machine for security reasons. You’ll have to upload it somewhere to see it in chrome. For more info see http://code.google.com/p/chromium/issues/detail?id=40787
- If you find anything different, update the wiki! Pyjamas Wiki
I ran through steps 1-4 once about 6 months ago. Since then I periodically rerun steps 5 and 6 to get the latest Pyjamas code.
One last note. I wouldn’t recommend pyjamas desktop on Windows if you’re doing Canvas apps. It will be good when a webkit pyjamas desktop version is out, but if you want pyjamas desktop, I’d go with Ubuntu 9.10. Because I have an Ubuntu box, I’ve never put in the time into figuring out how to get pyjamas desktop working on Windows with the latest Pyjamas code, but I do know others that are using it.