[SciPy-user] Scipy and Py2exe

Noko Phala nphala at angloresearch.com
Tue Jul 12 06:45:02 EDT 2005


Thanks.

I could solve the _cvs_version_ and 'cephes' errors, but I keep getting
the 'No Module named integrate'. I used the following lines :

 

 

 

from distutils.core import setup

import py2exe

import glob

import os

os.system("color E2") #color of console,2=green (use 1-7)

#

options = {

    "py2exe": {

                "includes": ['scipy',

                     'scipy.integrate',
'scipy.special.*','scipy.linalg.*'],

        "packages": ['encodings'

],

        

        }

    }         

 

 

Thanks,

Noko

 

-----Original Message-----
From: scipy-user-bounces at scipy.net [mailto:scipy-user-bounces at scipy.net]
On Behalf Of Nikos Papagrigoriou
Sent: Tuesday, July 12, 2005 8:52 AM
To: SciPy Users List
Subject: Re: [SciPy-user] Scipy and Py2exe

 

You have to make a proper setup.py if you want to create a Windows
executable using py2exe. The following is part of a setup.py I wrote for
a program (last year). Look at the "options" dictionary (includes: [...
'scipy.special.*','scipy.linalg.*'...])
.
.
.

options = {
    "py2exe": {
        "compressed": 1,
        "optimize": 2,
        "includes": ['gui', 
'stats', 'tables', 'config', 'scipy',
                     'constants', 'images', 'pool',
                     'tools','HTMLgen','shellcmds',
'scipy.special.*','scipy.linalg.*'],
        "packages": ['encodings'
],
        "dist_dir": distPath,
        }
    }

.
.
.

setup(
    name = progName,
    description = progDesc,
    version = __version__,
    options = options,
    zipfile = zipfile,
    windows = [program],
    cmdclass = {"py2exe": build_installer
},
    data_files = dataFiles,
    )


I hope this helps.

Nikos.

On 7/11/05, Noko Phala <nphala at angloresearch.com> wrote:

Hi,

I have a program written in python, that uses several Scipy modules and
wish to send it to a client as an exe. The client does not have to
install Python. For this, python worked before on my other programs, but
does not work with scipy. Through google I have established that the
program has to do with dynamic importing of modules by scipy, as opposed
to static import. Does anyone know how to fix this problem? 

Regards,

Noko

 



-- 
Nikos Papagrigoriou <nikos at papagrigoriou.gr >
http://www.papagrigoriou.gr 



------------------------------------------------------------------------------------------
This e-mail was checked by the e-Sweeper Service.
For more information visit our website, Clearswift Corporation e-Sweeper :
http://www.mimesweeper.com/products/esweeper/
------------------------------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20050712/3b87a35c/attachment.html>


More information about the SciPy-User mailing list