[Baypiggies] p2exe combined with building C extension forpython on WinXP with Visual C++ 2005

Giles Brown giles_brown at hotmail.com
Tue Apr 22 12:52:57 CEST 2008


In the past I've managed to get extensions built with mingw to play ok with 
the standard  build of python, but that was for Python 2.3 so things may
have changed...

http://www.mingw.org/MinGWiki/index.php/Python%20extensions

Might be worth investigating.

Giles

-----Original Message-----
From: David Berthelot [mailto:d_berthelot at yahoo.com] 
Sent: 22 April 2008 09:32
To: baypiggies at python.org
Subject: Re: [Baypiggies] p2exe combined with building C extension forpython
on WinXP with Visual C++ 2005

I was kind of avoiding to rebuild python with 2005 because I'm afraid to run
into other problems and I would also have to recompile all the libraries
that I use, namely numpy, PIL and wxpython which I never compiled on windows
(and that may bring me to recompile the core libraries on which these
wrappers are based, namely blas (and all the other mathematical libraries
that numpy uses) and wx as well, ...). I have the feeling there must be a
simpler way.

----- Original Message ----
From: Benjamin Sergeant <bsergean at gmail.com>
To: David Berthelot <d_berthelot at yahoo.com>
Cc: baypiggies at python.org
Sent: Tuesday, April 22, 2008 1:01:10 AM
Subject: Re: [Baypiggies] p2exe combined with building C extension for
python on WinXP with Visual C++ 2005

Building python with 2005 might help ?

On Tue, Apr 22, 2008 at 12:11 AM, David Berthelot <d_berthelot at yahoo.com>
wrote:
>
> Hi,
>
> I wrote an application in python and C that I am trying to port to 
> Windows XP (and that's where my nightmare begins). I couldn't find 
> Visual C++ 2003 as recommended in the documentation since Microsoft 
> removed it from download (generously offering 2005 express or 2008 express
instead).
>
> Now I have installed 2005 and I managed to build my extension module, 
> so far so good, it loads in python and works.
>
> The next step was to make this application and standalone program, so 
> I naturally turned to py2exe. Basically it creates an archive (for 
> which I must embed manually msvcm80.dll and msvcr80.dll). The 
> executable works on my local computer.
>
> The problem is that when I copy this archive to another windows XP 
> computer, it starts fine but the binary module compiled with express 
> 2005 crashes when invoked (all other modules included binaries of 
> wxpython which I supposed were compiled on express 2003 are running 
> fine). How could I solve this problem ?
>
> Thanks,
>
> David
>
>  ________________________________
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try 
> it now.
> _______________________________________________
>  Baypiggies mailing list
>  Baypiggies at python.org
>  To change your subscription options or unsubscribe:
>  http://mail.python.org/mailman/listinfo/baypiggies
>





 
____________________________________________________________________________
________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




More information about the Baypiggies mailing list