From: James C. <mr...@gm...> - 2006-06-28 23:34:41
|
On 6/28/06, G=E9za Groma <gr...@nu...> wrote: > Using Matplotlib 0.87.3 (wxAgg backend), NumPy 0.9.8, SciPy 0.4.9, > wxPython unicode.2.6.3.2, python 2.4.3 the following setup.py worked > well with py2exe 0.6.5 on Widows XP: > I followed your example, and had some luck. Thanks. My final distribution is 47MB in 840 files. Does anyone have an example th= at does even better? Last October, I used numarray + matplotlib in an almost identical project, and managed to bundle it into 11MB and four files. But I can't remember exactly the combination that I used. If I try to use a zip file (comment out the skip_archive) to reduce size and filecount, I get the error: File "matplotlib\backends\backend_wxagg.pyc", line 21, in ? File "matplotlib\figure.pyc", line 5, in ? File "matplotlib\artist.pyc", line 4, in ? File "matplotlib\transforms.pyc", line 215, in ? File "matplotlib\_transforms.pyc", line 1, in ? File "matplotlib\numerix\__init__.pyc", line 52, in ? File "numarray\__init__.pyc", line 42, in ? File "numarray\numarrayall.pyc", line 2, in ? File "numarray\generic.pyc", line 1120, in ? File "numarray\numarraycore.pyc", line 16, in ? File "numarray\_sort.pyc", line 12, in ? File "numarray\_sort.pyc", line 10, in __load File "numpy\__init__.pyc", line 35, in ? File "numpy\_import_tools.pyc", line 173, in __call__ File "numpy\_import_tools.pyc", line 68, in _init_info_modules File "<string>", line 1, in ? File "numpy\random\__init__.pyc", line 3, in ? File "numpy\random\mtrand.pyc", line 12, in ? File "numpy\random\mtrand.pyc", line 10, in __load File "numpy.pxi", line 32, in mtrand AttributeError: 'module' object has no attribute 'dtype' and even in the working example where I do skip_archive, I get the warnings= : The following modules appear to be missing ['FFT', 'LinearAlgebra', 'MA', 'MLab', 'Matrix', 'Numeric', 'Pyrex', 'Pyrex= .Comp iler', 'RandomArray', 'backends.draw_if_interactive', 'backends.new_figure_= manag er', 'backends.pylab_setup', 'backends.show', 'cephes', 'fcompiler.FCompile= r', ' fcompiler.show_fcompilers', 'genapi', 'lib.add_newdoc', 'numerix.ArrayType'= , 'nu merix.Complex', 'numerix.Complex32', 'numerix.Complex64', 'numerix.Float', = 'nume rix.Float32', 'numerix.Float64', 'numerix.Int', 'numerix.Int16', 'numerix.I= nt32' , 'numerix.Int8', 'numerix.NewAxis', 'numerix.UInt16', 'numerix.UInt32', 'n= umeri x.UInt8', 'numerix.absolute', 'numerix.add', 'numerix.allclose', 'numerix.a= lltru e', 'numerix.arange', 'numerix.arccos', 'numerix.arccosh', 'numerix.arcsin'= , 'nu merix.arcsinh', 'numerix.arctan', 'numerix.arctan2', 'numerix.arctanh', 'nu= merix .argmax', 'numerix.argmin', 'numerix.argsort', 'numerix.around', 'numerix.a= rray' , 'numerix.arrayrange', 'numerix.asarray', 'numerix.asum', 'numerix.bitwise= _and' , 'numerix.bitwise_or', 'numerix.bitwise_xor', 'numerix.ceil', 'numerix.cho= ose', 'numerix.clip', 'numerix.compress', 'numerix.concatenate', 'numerix.conjug= ate', 'numerix.convolve', 'numerix.cos', 'numerix.cosh', 'numerix.cross_correlat= e', ' numerix.cumproduct', 'numerix.cumsum', 'numerix.diagonal', 'numerix.divide'= , 'nu merix.dot', 'numerix.equal', 'numerix.exp', 'numerix.fabs', 'numerix.fft.ff= t', ' numerix.fft.inverse_fft', 'numerix.floor', 'numerix.fmod', 'numerix.fromfun= ction ', 'numerix.fromstring', 'numerix.greater', 'numerix.greater_equal', 'numer= ix.hy pot', 'numerix.identity', 'numerix.indices', 'numerix.innerproduct', 'numer= ix.is contiguous', 'numerix.less', 'numerix.less_equal', 'numerix.log', 'numerix.= log10 ', 'numerix.logical_and', 'numerix.logical_not', 'numerix.logical_or', 'num= erix. logical_xor', 'numerix.matrixmultiply', 'numerix.maximum', 'numerix.minimum= ', 'n umerix.mlab.amax', 'numerix.mlab.amin', 'numerix.mlab.cov', 'numerix.mlab.d= iff', 'numerix.mlab.hanning', 'numerix.mlab.rand', 'numerix.mlab.std', 'numerix.= mlab. svd', 'numerix.multiply', 'numerix.negative', 'numerix.nonzero', 'numerix.n= ot_eq ual', 'numerix.nx', 'numerix.ones', 'numerix.outerproduct', 'numerix.pi', '= numer ix.power', 'numerix.product', 'numerix.put', 'numerix.putmask', 'numerix.ra= nk', 'numerix.ravel', 'numerix.repeat', 'numerix.reshape', 'numerix.resize', 'nu= merix .searchsorted', 'numerix.shape', 'numerix.sin', 'numerix.sinh', 'numerix.si= ze', 'numerix.sometrue', 'numerix.sort', 'numerix.sqrt', 'numerix.subtract', 'nu= merix .swapaxes', 'numerix.take', 'numerix.tan', 'numerix.tanh', 'numerix.trace',= 'num erix.transpose', 'numerix.typecode', 'numerix.typecodes', 'numerix.where', = 'nume rix.which', 'numerix.zeros', 'numpy.Complex', 'numpy.Complex32', 'numpy.Com= plex6 4', 'numpy.Float', 'numpy.Float32', 'numpy.Float64', 'numpy.Inf', 'numpy.In= finit y', 'numpy.Int', 'numpy.Int16', 'numpy.Int32', 'numpy.Int8', 'numpy.UInt16'= , 'nu mpy.UInt32', 'numpy.UInt8', 'numpy.absolute', 'numpy.add', 'numpy.amax', 'n= umpy. amin', 'numpy.arange', 'numpy.array', 'numpy.asarray', 'numpy.asarray_chkfi= nite' , 'numpy.cast', 'numpy.concatenate', 'numpy.conjugate', 'numpy.diag', 'nump= y.dot ', 'numpy.exp', 'numpy.extract', 'numpy.eye', 'numpy.finfo', 'numpy.float_'= , 'nu mpy.floor', 'numpy.greater_equal', 'numpy.hstack', 'numpy.identity', 'numpy= .imag ', 'numpy.inf', 'numpy.infty', 'numpy.insert', 'numpy.iscomplexobj', 'numpy= .isfi nite', 'numpy.log', 'numpy.log2', 'numpy.logical_not', 'numpy.matrix', 'num= py.mg rid', 'numpy.newaxis', 'numpy.ogrid', 'numpy.ones', 'numpy.outerproduct', '= numpy .pi', 'numpy.poly1d', 'numpy.product', 'numpy.r_', 'numpy.ravel', 'numpy.re= al', 'numpy.reshape', 'numpy.sign', 'numpy.single', 'numpy.sqrt', 'numpy.subtrac= t', ' numpy.sum', 'numpy.take', 'numpy.transpose', 'numpy.typecodes', 'numpy.type= name' , 'numpy.where', 'numpy.zeros', 'numpy_distutils', 'numpy_distutils.command= .buil d_flib', 'numpy_distutils.command.cpuinfo', 'numpy_distutils.cpuinfo', 'num= py_di stutils.fcompiler', 'pkg_resources', 'pre', 'setuptools', 'setuptools.comma= nd', 'setuptools.command.egg_info', 'matplotlib.numerix.Float', 'matplotlib.nume= rix.F loat32', 'matplotlib.numerix.absolute', 'matplotlib.numerix.alltrue', 'matp= lotli b.numerix.asarray', 'matplotlib.numerix.ceil', 'matplotlib.numerix.equal', = 'matp lotlib.numerix.fromstring', 'matplotlib.numerix.put', 'matplotlib.numerix.r= avel' , 'matplotlib.numerix.sqrt', 'matplotlib.numerix.take', 'matplotlib.numerix= .tran spose', 'matplotlib.numerix.where', 'numarray.Complex', 'numarray.Complex32= ', 'n etc... Help me please! Thanks, -Jim |