amit666 / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Create Win32 compiled version #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using py2exe, it's possible to create a Win32 executable version of Python 
scripts and make it easier for Windows users. Instead of needing to download 
and install Python, gdata-python-client and finally googlecl, users can simply 
extract a googlecl zip file which will contain a googlecl.exe (along with 
various other .dlls).

http://www.py2exe.org/

I've done this for my Google Apps Management Command Line Tool:

http://code.google.com/p/google-apps-manager

Google Shared Contacts Client (another command line tool) has also done this:

http://code.google.com/p/google-shared-contacts-client/

Jay

Original issue reported on code.google.com by jay0lee@gmail.com on 19 Jun 2010 at 12:08

GoogleCodeExporter commented 9 years ago
Attached is the setup.py file. After installing py2exe and placing setup.py in 
the same directory as the "google" file, you can create an optimized executable 
build of googlecl with the command:

\path\to\python.exe -OO setup.py py2exe

also attached is a .zip containing google.exe and supporting files from a build 
for demo purposes. Note that this build was made with Python 2.6 which means 
MSVCR90.dll is needed on the Windows machine. I recommend using Python 2.5 
instead for a release quality build to minimize issues.

Jay
Jay

Original comment by j...@pbu.edu on 19 Jun 2010 at 11:50

Attachments:

GoogleCodeExporter commented 9 years ago
OK, I think I've done this correctly. It seems pretty solid -- I removed python 
2.6 and 2.5 from my machine and it works fine. Could other folks with a windows 
box verify that double-clicking "google" from the attached zip brings up the 
interactive shell?

Original comment by tom.h.mi...@gmail.com on 30 Jun 2010 at 3:16

Attachments:

GoogleCodeExporter commented 9 years ago
Works for me. Double-click opens the shell and "google calendar today" from the 
Windows command line prints the calendar as expected. Very nice! 

Original comment by itruett on 30 Jun 2010 at 1:02

GoogleCodeExporter commented 9 years ago
Ran into one little problem so far:

1. Run google.exe (double click or from command line)
2. type --help in the shell
3. The shell closes

This is particularly a problem if you double-click to run GoogleCL, since that 
means the the shell window closes entirely and you can't read the help text.

Original comment by itruett on 30 Jun 2010 at 1:54

GoogleCodeExporter commented 9 years ago
Looks like the 0.9.8 exe is working well. Thanks for all your help, Jay!

Original comment by tom.h.mi...@gmail.com on 1 Jul 2010 at 2:32