How to make pydev / eclipse compile cython modules on a Windows platform

My IDE is pydev / eclipse in Win XP.

I like the idea of ​​compiling cython modules inside the IDE, but I can only make it work in the Linux box.

right click on the project -> properties -> builders -> new -> program

I tried with the simplest setup.py and helloworld.pyx, as shown here:

http://docs.cython.org/src/userguide/tutorial.html

This is my screen on Linux

pydev / eclipse builder settings

It compiles helloworld.pyx in the usual way, since

python setup.py build_ext --inplace

However, on WinXP, with the same settings, again after clicking

project → assembly project

I get

enter image description here

those. "is not a valid Win32 application."

Any clue why this is not working on WinXP?

Update: Problem resolved by Fabio . It works:

adjust_location_and_wd

+6
source share
1 answer

The error is that it is trying to execute setup.py as if it were an executable ...

The problem in your particular use case is that external developers do not know anything about python, so the location should actually map to your python.exe (and the setup.py location should be passed as a parameter).

+1
source

Source: https://habr.com/ru/post/905296/


All Articles