Running CPython applications with Visual Studio?

I would like to know how to use Visual Studio with CPython (the official python.org python interpreter, not IronPython).

In particular, I'm interested in getting the "build" and "run" commands in Visual Studio. Other features like color highlighting and autocomplete are less of a concern for me.

Also can the "build" command be executed to run py2exe or similar exe packages?

+2


a source to share


4 answers


Python Tools for Visual Studio is an addin that supports both CPython and IronPython.



+3


a source


Eclipse and PyDev already provide an excellent development environment for Python. Is there a reason you can't use them?



+1


a source


Are you trying to build CPython yourself? Doesn't it come with project files suitable for use with Visual Studio? (I think I remember this happened.)

If you want you to use CPython, but not build it, just type c: \ pythonxx \ python.exe into the debug executable and in the arguments enter the full path to the script.

Build a makefile project and you can do whatever you want with the build rules to get the "build" function.

+1


a source


You can create your own project that will execute the bat file when it is created. I remember I used this method to create an Inoosetup installer to get you working to run the py2exe script.

I don't know the rest of the functions. Syntax highlighting and autocomplete should be much more difficult. I would recommend trying Komodo Edit or Eclipse / Pydev. It works out of the box

0


a source







All Articles