This project has moved and is read-only. For the latest updates, please go here.


Support for Cython projects


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.
Closed May 4, 2015 at 7:24 PM by Zooba


Czarek wrote Jun 28, 2012 at 3: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 9:37 AM

jamesramm wrote Jun 19, 2014 at 8: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 file

pminaev wrote Jun 19, 2014 at 9: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

Zooba wrote Jun 19, 2014 at 2:09 PM

We considered adding commands to 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 ..." 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...