开发者

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 am in开发者_如何学Pythonterested in getting "build" and "run" commands in Visual Studio working. Other features such as color highlighting and auto-complete, I am less concerned about.

Also, can the "build" command be made to run py2exe or similar exe packagers?


Python tools for Visual Studio is an addin which supports both CPython and IronPython.


Eclipse and PyDev already provide an excellent development environment for Python. Is there any reason you cannot use them?


Are you trying to build CPython itself? Doesn't it come with project files suitable for use with Visual Studio? (I seem to remember that it did.)

If you mean that you want to use CPython but not build it, then just type c:\pythonxx\python.exe into the debugging executable and in the arguments put your script's full path name.

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


You can create custom project that will execute a bat file when building. I remember that I used this method to generate a Inoosetup installer so that you should work to run the py2exe script.

I have no idea for the rest of the features. The syntax highlighting and the auto-complete should be much more challenging. I would recommend to give a try to Komodo Edit or Eclipse/Pydev. It works out of the box

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜