[IronPython] (do you use any standard library modules?)
Michael Foord
fuzzyman at voidspace.org.uk
Thu Aug 28 10:48:42 CEST 2008
Vadim Khaskel wrote:
> Yes, I use a lot standard library modules appending path (C:\\Python25) to sys.path...
>
> What option should I add to command line in this case?
>
Well, if you want a standalone executable then you will have to work out
which standard library modules you use and compile them *all* into your
application.
A better alternative would be to keep the standard library (in a
directory) as part of your project. At runtime you can add this folder
to sys.path - and distribute it as part of your application.
There are libraries (that run under CPython) for tracking dependencies -
both as part of the standard library and py2exe - that you could use to
automate this if you wanted to take the first option.
Michael
> thank you,
>
> V.
>
>
>
> Message: 2
> Date: Wed, 27 Aug 2008 22:25:31 +0100
> From: Michael Foord <fuzzyman at voidspace.org.uk>
> Subject: Re: [IronPython] creatiing .exe file with ipy.exe v. 1.1
> To: Discussion of IronPython <users at lists.ironpython.com>
> Message-ID: <48B5C64B.7020705 at voidspace.org.uk>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> Vadim Khaskel wrote:
> >
> > Here is the command line output:
> >
> > C:\Pyc>ipy.exe pyc.py /main:Program.py Form1.py help.py routineM.py
> > /target:winexe /r:System.Drawing /r:System.Windows.F
> > orms
> > Input Files:
> > Program.py
> > Form1.py
> > help.py
> > routineM.py
> > Resource Files:
> > Output:
> > Program.exe
> > Target:
> > WindowApplication
> > C:\Pyc>
> >
> >
> > On the machine where I developing this program Program.exe works
> > perfectly.
> >
> > I transfer this file along with Ironpython.dll, IronMath.dll,
> > Program.pdb to another machine, and try to start it there...
> > and nothing happens, not even error message.
> > (I tried to start it from cmd line too)
>
> If you create a Windows Application it detaches from the console so you
> will never see any error message. It is likely that you are missing a
> module or assembly that you rely on (do you use any standard library
> modules?).
>
> Create it as a console application and run it from the command line on
> the target machine and you will see the error message.
>
> Michael Foord
>
> >
> > appreciate any hint,
> >
> > Vadim
>
> ------------------------------------------------------------------------
> Talk to your Yahoo! Friends via Windows Live Messenger. Find Out How
> <http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.resolverhacks.net/
http://www.theotherdelia.co.uk/
More information about the Ironpython-users
mailing list