Indeed, the problem is solved by using 'excludes' like this :

from distutils.core import setup
import py2exe
setup(script_args = ['py2exe'],
windows=[{'script':'ScaledBitmap2Demo.py'}],  options = {'py2exe':
{'compressed':1,'bundle_files': 1,'excludes': ['Tkconstants', 'Tkinter']}},
zipfile = None)

Thank you again.



2014-01-28 Chris Barker <[email protected]>

> On Tue, Jan 28, 2014 at 5:46 AM, Nouvelle Collection <
> [email protected]> wrote:
>
>> As FloatCanvas uses Numpy, then tcl/tk is involved when using freezing
>> tools like py2exe :
>> tcl/,  tcl/tk8.5/   and tcl/tcl8.5/   are added to the main folder .
>>
>
> Yup, this is a problem with py2exe and, as far as I know, all the others
> -- they seek to make sure everything gets included that you might need, and
> the package maintainers want to make sure everything they have is easy to
> import. So younot only get Tk, but also all of numpy (and all of wx),
> whether you are using it or not.
>
>
>
>> Do you know how to prevent this to happen ?
>>
>
> you can try using the "exclude" options for py2exe, and if that doesn't
> work, I've had success writing a little script that deletes the uneeded
> stuff after py2exe builds it
>
> -Chris
> --
>
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R            (206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115       (206) 526-6317   main reception
>
> [email protected]
>
> _______________________________________________
> FloatCanvas mailing list
> [email protected]
> http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
>
>
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to