_ssl.pyd in py2exe ???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fuzzyman

    _ssl.pyd in py2exe ???

    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



  • Peter Strempel

    #2
    Re: _ssl.pyd in py2exe ???

    Fuzzyman wrote:[color=blue]
    > large........ but why on earth in an anagram finder is _ssl.pyd (500k)
    > being bundled in with it ???[/color]


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


    Peter

    Comment

    • simo

      #3
      Re: _ssl.pyd in py2exe ???

      michael@foord.n et (Fuzzyman) wrote:
      [color=blue]
      > 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 ???[/color]

      Probably that some module you have imported requires it, maybe Tk?

      Comment

      • Fuzzyman

        #4
        Re: _ssl.pyd in py2exe ???

        Peter Strempel <peterstrempel@ yahoo.com> wrote in message news:<isrkg1-q33.ln1@ID-66900.news.dfnc is.de>...[color=blue]
        > Fuzzyman wrote:[color=green]
        > > large........ but why on earth in an anagram finder is _ssl.pyd (500k)
        > > being bundled in with it ???[/color]
        >
        >
        > You probably have some dependency on socket somewhere, which pullsin the ssl
        > module.
        >[/color]

        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 asksaveasfilena me, askopenfilename
        from tkMessageBox import showerror

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


        Hmmm... odd :-)

        Fuzzy

        [color=blue]
        >
        > Peter[/color]

        Comment

        • Thomas Heller

          #5
          Re: _ssl.pyd in py2exe ???

          michael@foord.n et (Fuzzyman) writes:
          [color=blue]
          > Peter Strempel <peterstrempel@ yahoo.com> wrote in message news:<isrkg1-q33.ln1@ID-66900.news.dfnc is.de>...[color=green]
          >> Fuzzyman wrote:[color=darkred]
          >> > large........ but why on earth in an anagram finder is _ssl.pyd (500k)
          >> > being bundled in with it ???[/color]
          >>
          >>
          >> You probably have some dependency on socket somewhere, which pullsin the ssl
          >> module.
          >>[/color]
          >
          > 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 asksaveasfilena me, askopenfilename
          > from tkMessageBox import showerror
          >
          > None of which *should* be dependant on the SSL library........ ...[/color]

          _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


          Comment

          • Fuzzyman

            #6
            Re: _ssl.pyd in py2exe ???

            Thomas Heller <theller@python .net> wrote in message news:<mailman.1 94.1077530438.2 7104.python-list@python.org >...[color=blue]
            > michael@foord.n et (Fuzzyman) writes:[/color]

            [snip..]
            [color=blue]
            > _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[/color]

            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


            Comment

            Working...