By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,908 Members | 1,945 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,908 IT Pros & Developers. It's quick & easy.

_ssl.pyd in py2exe ???

P: n/a
I've written a Tkinter application and am bundling it using py2exe 0.5

Because of the inclusion of Tk/TCL the final package is rather
large........ but why on earth in an anagram finder is _ssl.pyd (500k)
being bundled in with it ???

Seems rather odd ? Possibly this is something *other* than the secure
socket layer library... but if it is that... bizzare.........
Fuzzy
http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Fuzzyman wrote:
large........ but why on earth in an anagram finder is _ssl.pyd (500k)
being bundled in with it ???

You probably have some dependency on socket somewhere, which pullsin the ssl
module.
Peter
Jul 18 '05 #2

P: n/a
mi*****@foord.net (Fuzzyman) wrote:
I've written a Tkinter application and am bundling it using py2exe 0.5

Because of the inclusion of Tk/TCL the final package is rather
large........ but why on earth in an anagram finder is _ssl.pyd (500k)
being bundled in with it ???


Probably that some module you have imported requires it, maybe Tk?
Jul 18 '05 #3

P: n/a
Peter Strempel <pe***********@yahoo.com> wrote in message news:<is************@ID-66900.news.dfncis.de>...
Fuzzyman wrote:
large........ but why on earth in an anagram finder is _ssl.pyd (500k)
being bundled in with it ???

You probably have some dependency on socket somewhere, which pullsin the ssl
module.


It jumbles up words and displays the results in a Tk window...........

Which is why I'm surprised to see an SSL library there...

My imports are :
import string, os.path, sys
from cPickle import dump, load
from copy import copy, deepcopy
from time import clock, strftime
from webbrowser import open as openbrow

try:
import psyco # python specialising compiler
psyco.full()
except:
pass

from Tkinter import *
from tkFileDialog import asksaveasfilename, askopenfilename
from tkMessageBox import showerror

None of which *should* be dependant on the SSL library...........
Hmmm... odd :-)

Fuzzy


Peter

Jul 18 '05 #4

P: n/a
mi*****@foord.net (Fuzzyman) writes:
Peter Strempel <pe***********@yahoo.com> wrote in message news:<is************@ID-66900.news.dfncis.de>...
Fuzzyman wrote:
> large........ but why on earth in an anagram finder is _ssl.pyd (500k)
> being bundled in with it ???

You probably have some dependency on socket somewhere, which pullsin the ssl
module.


It jumbles up words and displays the results in a Tk window...........

Which is why I'm surprised to see an SSL library there...

My imports are :
import string, os.path, sys
from cPickle import dump, load
from copy import copy, deepcopy
from time import clock, strftime
from webbrowser import open as openbrow

try:
import psyco # python specialising compiler
psyco.full()
except:
pass

from Tkinter import *
from tkFileDialog import asksaveasfilename, askopenfilename
from tkMessageBox import showerror

None of which *should* be dependant on the SSL library...........


_ssl is imported by the httplib and socket modules.
socket is imported by a lot of modules, webbrowser among them, so this
is explained.

If you are sure your program never uses socket (or _ssl), you should use
py2exe's excludes option to avoid that these are included.

Thomas
Jul 18 '05 #5

P: n/a
Thomas Heller <th*****@python.net> wrote in message news:<ma**************************************@pyt hon.org>...
mi*****@foord.net (Fuzzyman) writes:
[snip..]
_ssl is imported by the httplib and socket modules.
socket is imported by a lot of modules, webbrowser among them, so this
is explained.

If you are sure your program never uses socket (or _ssl), you should use
py2exe's excludes option to avoid that these are included.

Thomas


I did wonder if it was the webbrowser module !
It's half a meg of unnecessary 'stuff' - so I'll set py2exe to not include it.

MANY THANKS

Fuzzyman

http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.