Mmm... No! I bet you do not have C:\MinGW\bin in your %PATH%, the "No
such file or directory" message is related to "gcc" command not being
found...

Set your %PATH% appropriately before, and next build & install:

set PATH=C:\MinGW\bin;%PATH%
python setup.py build -c mingw32 install


PS: If you still have problems, you should ask Microsoft for further
help.... (Just joking :-), keep coming!)

-

On Mon, Jun 29, 2009 at 3:37 PM, Elliott
Slaughter<[email protected]> wrote:
> Thanks.
>
> Now gcc seems to fail on paths with backslashes in them.
>
> C:\bin\Cython-0.11.2>python setup.py build -c mingw32
> ...
> building 'Cython.Plex.Scanners' extension
> gcc -mno-cygwin -mdll -O -Wall -IC:\bin\Python25\include
> -IC:\bin\Python25\PC -c
>  C:\bin\Cython-0.11.2\Cython\Plex\Scanners.c -o
> c:\bin\cython-0.11.2\cython\plex
> \scanners.o
> error: command 'gcc' failed: No such file or directory
>
> Suggestions?
>
> On Mon, Jun 29, 2009 at 11:24 AM, Lisandro Dalcin <[email protected]> wrote:
>>
>> Build&Install using EXACTLY this:
>>
>> python setup.py build -c mingw32 install
>>
>>
>>
>> On Mon, Jun 29, 2009 at 3:13 PM, Elliott Slaughter<[email protected]>
>> wrote:
>> > Hi,
>> >
>> > I just tried to install Cython with Python 2.5.4 (from the binary
>> > installer)
>> > on Windows. Since I don't have MSVC installed, I get this message:
>> >
>> > C:\...\Cython-0.11.2>python setup.py install
>> > ...
>> > error: Python was built with Visual Studio 2003;
>> > extensions must be built with a compiler than can generate compatible
>> > binaries.
>> > Visual Studio 2003 was not found on this system. If you have Cygwin
>> > installed,
>> > you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
>> >
>> > But the -c option isn't actually recognized by setup.py:
>> >
>> > C:\...\Cython-0.11.2>python setup.py -c mingw32 install
>> > ...
>> > usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
>> >    or: setup.py --help [cmd1 cmd2 ...]
>> >    or: setup.py --help-commands
>> >    or: setup.py cmd --help
>> >
>> > error: option -c not recognized
>> >
>> > And setup.py --help doesn't give any relevant suggestions.
>> >
>> > I would appreciate it if someone could point me in the right direction.
>> >
>> > Thanks.
>> >
>> > --
>> > Elliott Slaughter
>> >
>> > "Don't worry about what anybody else is going to do. The best way to
>> > predict
>> > the future is to invent it." - Alan Kay
>> >
>> > _______________________________________________
>> > Cython-dev mailing list
>> > [email protected]
>> > http://codespeak.net/mailman/listinfo/cython-dev
>> >
>> >
>>
>>
>>
>> --
>> Lisandro Dalcín
>> ---------------
>> Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
>> Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
>> Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
>> PTLC - Güemes 3450, (3000) Santa Fe, Argentina
>> Tel/Fax: +54-(0)342-451.1594
>> _______________________________________________
>> Cython-dev mailing list
>> [email protected]
>> http://codespeak.net/mailman/listinfo/cython-dev
>
>
>
> --
> Elliott Slaughter
>
> "Don't worry about what anybody else is going to do. The best way to predict
> the future is to invent it." - Alan Kay
>
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
>
>



-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to