pythoncpythonpython.netpython-stacklessstackless

Is it possible to use stackless python 2.7.2 with pythondotnet?


Platform: Windows 7 Assume 32bit versions of both.

My current understanding is that it is NOT possible since both installation processes involve replacing the python.exe itself.

I guess the source for each would have to be merged in order to get functionality from both?

Stackless Python: http://zope.stackless.com/

Python for .NET: http://pythonnet.github.io/

We are using Python for .NET over IronPython since we want access to the full range of cpython libraries (e.g. matplotlib among others).


Solution

  • Turns out there is an option for pythondotnet where you don't have to replace the exe. This is mentioned briefly in the "getting started" section here: http://pythonnet.github.io/readme

    This allows you to then do the install of stackless (modifying the exe) and still get the pythondotnet functionality.

    The clr.pyd and Python.Runtime.dll files end up getting copied into the Python27/DLLs directory instead of copying both of these files and a modified python.exe into the root python install directory.

    This was all done with x86, btw... the x64 support works for pythondotnet but could not get the stackless x64 support to work... got the x64 interpreter to run after building from source but libraries like numpy appeared broken.