I don't think you can. ASP *requires* that its scripting languages be implemented as COM objects (DLLs) and that they implement the IScripting interface [or a name similar to that]. Microsoft doesn't even expose the interface publicly (that is, it's not documented). They used to, back in about 1998 or 1999, but when ASP 3 arrived in 2000 or so they ceased making it public.
Anyway, the interface is *NOT* obvious and the ways in which the scripting language has to interface to ASP are far, far from obvious. [Just for starters, ASP *assumes* that all the so-called scripting languages are *not* interpreters! Just as with VBS and JScript, ASP assumes that each language is a compiler that compiles to byte code and then uses a runtime that executes the byte code. And there are lots of restrictions on how this all works, because an ASP page is allowed to mix scripting languages. And and and...]
I'm not saying this is impossible, but I think it would be a good 6 month to 1 year project, at a minimum. And when you are done, what do you have? A poor implementation of Python on a platform not designed for it.
But if you are serious about this, you should contact Microsoft.
|