Page 1 of 1

Making a Binary

Posted: May 3rd, 2008, 2:59 am
by Titan999
Hi all,

I edited the source of the distribution to allow rss feeds to be checked every 15 minutes instead of the limit (every 30 minutes). 15 minutes really makes the difference with me, my ISP throttles bandwidth at certain times and my items would be downloaded right in time instead of having to wait another 12 hours till the bandwidth is no longer throttled. (from 1.6mbit to 32kbit). I used the 0.4 Beta 2 Distribution.

How would I go about compiling my new sources to exe's, I searched the forums but there's very little I can find. I downloaded the utility py2exe but i'm not sure how to use it. I'm sure something extra needs to be done (two binaries can be made the console one and the hidden one)

I prefer to run the source without python running.

Thanks

Re: Making a Binary

Posted: May 3rd, 2008, 3:05 am
by shypike
Python will run anyway, makes no difference in performance or memory usage.

Re: Making a Binary

Posted: May 3rd, 2008, 3:20 am
by Titan999
OK, I figured out how to compile it, but I need a proper setup.py script

mine gave me
The following modules appear to be missing
['Foundation', 'OpenSSL', 'WebKit.Servlet', '_namemapper', '_yenc', 'cElementTre
e', 'coverage', 'ds.appserver.Servlet', 'ds.sys.Unspecified', 'elementtree.Eleme
ntTree', 'email.Generator', 'email.Iterators', 'email.Utils', 'email.base64MIME'
, 'feedparser', 'ldap', 'resource', 'validate']

when i tried to compile.

I really don't want the python distribution running, I like the entire script to be running hidden in the background like the binary

Re: Making a Binary

Posted: May 3rd, 2008, 6:13 am
by Titan999
Hey again,

I'm pretty sure I have all of those modules in the reply above, but I can't get those errors to go away. Any suggestions?

Re: Making a Binary

Posted: May 3rd, 2008, 7:45 am
by switch
Grab a version from the svn, it has a proper setup.py to run.
You need the py2exe module. Compile by running
python setup.py py2exe

Re: Making a Binary

Posted: May 3rd, 2008, 12:16 pm
by shypike
Haha, no longer:
It's now:

Code: Select all

setup.py binary