18
Vote

Support for Cython projects

description

Let's add support for Cython projects!
-- Syntax highlighting for .pyx files
-- Intellisense for Cython modules
-- Intellisense in Cython modules for imported C functions
-- Build support (Ctrl-Shift-B runs the entire Cython toolchain producing a .pyd at the end)
-- References and dependencies between Python and Cython projects
-- Etc.

comments

Czarek wrote Jun 28, 2012 at 2:25 PM

You can enable highlihting .pyx files by going to Tools > Options > Text Editor > File Extension and by associating pyx with Python Editor, but there is so much of the code underlined with red....

pminaev wrote Dec 10, 2013 at 8:37 AM

jamesramm wrote Jun 19 at 7:46 AM

Enabling highlighting is fairly pointless as visual studio will interpret half a cython file as errors.

PTVS really really needs proper cython support, including highlighting & recognising pyx files and being able to set command line arguments for the setup.py file

pminaev wrote Jun 19 at 8:33 AM

Note that build support can be cobbled together outside of PTVS, now that it has proper support for build (via MSBuild). I assume that's what you mean by setup.py?

Zooba wrote Jun 19 at 1:09 PM

We considered adding commands to setup.py files but decided against it on the basis that we'd probably miss something. We do have an "Open Command Prompt Here" command that will set the paths, so choosing that and typing "python setup.py ..." is the recommended way.

As for true Cython support, in the absence of external contributions or significant demand (the sort that is likely to make MSFT some money) we won't have and can't get the developers we need to get to it any time soon. Much as I'd love to...