_ssl.pyd in py2exe ???

F

Fuzzyman

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/atlantibots/pythonutils.html
 
P

Peter Strempel

Fuzzyman said:
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
 
S

simo

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?
 
F

Fuzzyman

Peter Strempel said:
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
 
T

Thomas Heller

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
 
F

Fuzzyman

Thomas Heller said:
(e-mail address removed) (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/atlantibots/pythonutils.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top