Making a Binary

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Titan999
Newbie
Newbie
Posts: 12
Joined: May 2nd, 2008, 4:13 am

Making a Binary

Post 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
Last edited by Titan999 on May 3rd, 2008, 3:01 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Making a Binary

Post by shypike »

Python will run anyway, makes no difference in performance or memory usage.
Titan999
Newbie
Newbie
Posts: 12
Joined: May 2nd, 2008, 4:13 am

Re: Making a Binary

Post 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
Titan999
Newbie
Newbie
Posts: 12
Joined: May 2nd, 2008, 4:13 am

Re: Making a Binary

Post 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?
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Making a Binary

Post 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
Last edited by switch on May 3rd, 2008, 11:02 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Making a Binary

Post by shypike »

Haha, no longer:
It's now:

Code: Select all

setup.py binary
Post Reply