views:

171

answers:

4

Hi,

I've got Visual Studio 2010. To develop a web app in Iron Python (i.e. to use a Ruby like language not C#) what downloads to I need? e.g. is the DLR already in VS2010, Iron Python itself

Once setup would I actually be still developing an ASP.net MVC web app but just using Ruby for the language, or is the model something different to this?

thanks

+2  A: 

You need to download

ironPython extensions for visual studio

Then you can create an ironPython project. It's really easy.

and here are tools for ironPython

http://www.ironpython.net/ironpython/tools/

Good Luck!

hgulyan
I highly recommend using the IronPython team's own extensions from http://www.ironpython.net/ironpython/tools/ instead.
Jeff Hardy
You're right, I was going to add that link, instead I added the same link twice. As you can see, I wrote "tools for ironPython" and added extensions link..
hgulyan
+2  A: 

Out of the box, Visual Studio doesn't contain IronPython or IronRuby. You can add IronPython support using the tools from http://www.ironpython.net/ironpython/tools/; there is no equivalent for IronRuby yet.

Right now, there is no integration between IronPython and ASP.NET MVC. You can make it work, but it involves re-plumbing most of ASP.NET MVC. There is an IronRuby version available at http://github.com/jredville/ironrubymvc, but it's just a prototype (that said, it does work quite well).

Another option is to use an existing Python web framework (such as Django). However, every major Python web framework I've tried (and there's a lot of them) has had some issue with IronPython - those issues are getting rarer and rarer, but it also makes them much harder to track down. The low-hanging fruit for Python compatibility are long gone.

Rather than use a major framework, you could try to roll your own - there's a great tutorial that uses WebOb to create a web framework, and WebOb works well on IronPython. Part of the reason that there are so many Python web frameworks is that it's so easy to make a simple one.

If you stick to the pure-Python route, you'll probably want to use NWSGI to deploy your app. WSGI is the standard Python API for web apps, and NWSGI uses IronPython to implment the spec.

Finally, you can use the IronPython tools mentioned above to edit your code and use CPython to run it - you don't get debugger support, but most everything else should work just fine.

Also, IronRuby will run Rails just fine, but you don't get Visual Studio support.

Jeff Hardy
A: 

In addition to hgulyan's answer above, I would recommend everyone to vote for Microsoft to integrate Python in VS2010.

Shimmy