Re: Pyrex installation on windows XP: step-by-step guide

2007-09-26 Thread Fredrik Lundh
Dominique Pignon wrote: > Bravo pour le guide d'installation! > Je suppose que vous parlez français. > J'ai installé pyrex suivant vos conseils > tout se passe normalement > l'exemple primes est installé dans /Lib/site_packages/primes.pyd > > le programme a été compilé > mais je n'arrive pas à

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-27 Thread greg
Jim Lewis wrote: > Thanks but now another problem :-( > Examples in books show importing a global so why does below give: > AttributeError: 'module' object has no attribute 'globalvar' > > primes.pyx: > from run import globalvar > def prime(int kmax): > result = [run.globalvar] > ... > > run.py

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-26 Thread sturlamolden
Gonzalo Monzón wrote: > Does this happen if you're releasing, i.e. a built exe with py2exe, > where you supply the right crt? or if you do supply the right crt on the > application folder? ... It does not matter which crt you "supply". The dynamic linker will attempt to load the crt specified by

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-26 Thread Gonzalo Monzón
Hi, sturlamolden escribió: Gonzalo Monzón wrote: > > >>I use Python 2.4.3 (msvcrt71) and I succesfully installed the last >>version of binutils, pyrex and MinGW, some weeks ago, using Julien Fiore >>step-by-step guide, so "my" MinGW is linking with msvcrt71.dll, with the >>default configuratio

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-26 Thread sturlamolden
Gonzalo Monzón wrote: > I use Python 2.4.3 (msvcrt71) and I succesfully installed the last > version of binutils, pyrex and MinGW, some weeks ago, using Julien Fiore > step-by-step guide, so "my" MinGW is linking with msvcrt71.dll, with the > default configuration. A successful build (compile an

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-25 Thread Jim Lewis
Thanks but now another problem :-( Examples in books show importing a global so why does below give: AttributeError: 'module' object has no attribute 'globalvar' primes.pyx: from run import globalvar def prime(int kmax): result = [run.globalvar] ... run.py: from primes import prime globalvar =

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-22 Thread Robert Kern
Jim Lewis wrote: > Still problems :-( > > I have a directory c:\data\code\test\pyrex containing: > > build_and_install.bat: > "C:\program files\Python\python.exe" setup.py build_ext > --compiler=mingw32 > pause > But running run.py gives: "ImportError: No module named worldimport" > > Should wo

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-22 Thread Jim Lewis
Still problems :-( I have a directory c:\data\code\test\pyrex containing: build_and_install.bat: "C:\program files\Python\python.exe" setup.py build_ext --compiler=mingw32 pause setup.py: from distutils.core import setup from distutils.extension import Extension from Pyrex.Distutils import build

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-22 Thread Claudio Grondi
sturlamolden wrote: > Julien Fiore wrote: > >>Thanks for your remark, Sturlamolden. >> >>Is there a free version of the "Visual C++ 2003" compiler available on >>the web? I have found "Visual C++ 2005 Express edition" >>(http://msdn.microsoft.com/vstudio/express/visualc/). According to >>Micrsoft,

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Gonzalo Monzón
Robert Kern escribió: >Gonzalo Monzón wrote: > > > >>I see there are both libraries linked in my pyrex modules... However, >>when one should expect to have problems with this "dll nightmare", if >>you always provide the right msvcr71.dll bundled within your project -I >>mean, using py2exe by

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Jim Lewis
Thanks. I had done that but it seems I had to remove "install". Now it works. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Robert Kern
Gonzalo Monzón wrote: > I see there are both libraries linked in my pyrex modules... However, > when one should expect to have problems with this "dll nightmare", if > you always provide the right msvcr71.dll bundled within your project -I > mean, using py2exe by example- ? > > Of course if y

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Gonzalo Monzón
Robert Kern escribió: >Gonzalo Monzón wrote: > > >>sturlamolden escribió: >> >> > > > >>>I don't think this is safe. MinGW links with msvcrt.dll whereas the >>>main Python distribution links with msvcr71.dll (due to Visual C++ >>>2003). It is not safe to mix and blend different C runtime

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Robert Kern
Gonzalo Monzón wrote: > sturlamolden escribió: >>I don't think this is safe. MinGW links with msvcrt.dll whereas the >>main Python distribution links with msvcr71.dll (due to Visual C++ >>2003). It is not safe to mix and blend different C runtime libraries. >>If you are to build a C extension wit

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Robert Kern
Jim Lewis wrote: >>and change "-lmsvcrt" to "-lmsvcr71". > > But then I get this error: Python was built with version 7.1 of Visual > Studio, and extensions need to be built with the same version of the > compiler, but it isn't installed. > I want to use mingw. You have to tell distutils to use m

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Robert Kern
sturlamolden wrote: > sturlamolden wrote: > >>I don't think this is safe. MinGW links with msvcrt.dll whereas the >>main Python distribution links with msvcr71.dll (due to Visual C++ >>2003). > > In order to make minGW link with msvcr71.dll, edit the text file > > c:\mingw\lib\gcc\mingw32\3.2.4\

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Gonzalo Monzón
sturlamolden escribió: >Julien Fiore wrote: > > >># step A.3 # >>Install Mingw, the gcc compiler for Windows, available at >>http://www.mingw.org/download.shtml. (we downloaded the file >>MinGW-5.0.2.exe and installed only the "base tool" (this includes >>mingw-runtime 3.9, w32api-3.6, binutils

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Jim Lewis
> and change "-lmsvcrt" to "-lmsvcr71". But then I get this error: Python was built with version 7.1 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed. I want to use mingw. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-28 Thread Chris Cioffi
On 28 Apr 2006 01:06:55 -0700, Julien Fiore <[EMAIL PROTECTED]> wrote: I added "step A.5" to the guide and published it on the Python wiki, sothat anyone can update it easily:http://wiki.python.org/moin/PyrexOnWindows --http://mail.python.org/mailman/listinfo/python-listThanks to Julien and everyon

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-28 Thread Julien Fiore
I added "step A.5" to the guide and published it on the Python wiki, so that anyone can update it easily: http://wiki.python.org/moin/PyrexOnWindows -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-27 Thread Julien Fiore
sturlamolden wrote: > edit the text file "c:\mingw\lib\gcc\mingw32\3.2.4\specs" > and change "-lmsvcrt" to "-lmsvcr71". Thank you very much sturlamolden, This procedure should be added to the "step-by-step" guide (see 1st message of this thread) as "step A.5". For ignorant people like me, CRT =

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-27 Thread sturlamolden
sturlamolden wrote: > I don't think this is safe. MinGW links with msvcrt.dll whereas the > main Python distribution links with msvcr71.dll (due to Visual C++ > 2003). In order to make minGW link with msvcr71.dll, edit the text file c:\mingw\lib\gcc\mingw32\3.2.4\specs and change "-lmsvcrt" to

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-27 Thread sturlamolden
Julien Fiore wrote: > Thanks for your remark, Sturlamolden. > > Is there a free version of the "Visual C++ 2003" compiler available on > the web? I have found "Visual C++ 2005 Express edition" > (http://msdn.microsoft.com/vstudio/express/visualc/). According to > Micrsoft, it replaces VC++2003 > (

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-27 Thread Julien Fiore
Thanks for your remark, Sturlamolden. Is there a free version of the "Visual C++ 2003" compiler available on the web? I have found "Visual C++ 2005 Express edition" (http://msdn.microsoft.com/vstudio/express/visualc/). According to Micrsoft, it replaces VC++2003 (http://msdn.microsoft.com/visualc/

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-26 Thread sturlamolden
Julien Fiore wrote: > > # step A.3 # > Install Mingw, the gcc compiler for Windows, available at > http://www.mingw.org/download.shtml. (we downloaded the file > MinGW-5.0.2.exe and installed only the "base tool" (this includes > mingw-runtime 3.9, w32api-3.6, binutils 2.15.91 and gcc-core 3.4.2).

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-26 Thread Boris Borcic
Julien Fiore wrote: > Do you wand to install Pyrex on Windows ? > > Here is a step-by-step guide explaining: > > A) how to install Pyrex on Windows XP. > B) how to compile a Pyrex module. > > Julien Fiore, > U. of Geneva Thanks. One detail missing : for this (step b3) to work smooth

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-19 Thread Julien Fiore
To install Pyton, I simply used the python Windows installer (python-2.4.2.msi) available at python.org. Julien -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-19 Thread vj
Can you use the stock python build or do you have to build python from scratch with mingw to use pyrex modules built with mingw? -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-19 Thread Michel Claveau
Merci beaucoup ! Thank you very much! -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list