Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to get/How to build Windows binary of mod_wsgi with python 3.0 support?

I wanted to experiment a little with python 3.0 at home. I got python 3.0 working, I've played around with some scripts, and I thought it would be fun to try to make a small web-project with it.

As I was googling, it turned out, that mod_python, for some reasons, will not be able to support python 3.0.

The only other alternative I've found is mod_wsgi.

On the main page of the mod_wsgi project, it says, that if you want to play with python 3.0, you have to get the latest version from subversion repository. I was wondering, if there is somewhere a pre-built windows binaries available?

If there are no such binaries, then I'd be thankful for any resources about building it with VC++ 2008. Or maybe even general resources about building apache and it's modules with VC++ 2008. Thanks.

Oh and, I'm using the latest Apache 2.2 release.

EDIT: Will it be a problem, if I'll be using the official apache build with my own build of a mod_wsgi (I used depends.exe on apache, and seems that it's not built with VC++ 2008)?

like image 804
Paulius Avatar asked Jan 15 '09 14:01

Paulius


2 Answers

Binaries for Windows are now being supplied from the mod_wsgi site for Apache 2.2 and Python 2.6 and 3.0. Python 3.0 is only supported for mod_wsgi 3.0 onwards. See:

http://code.google.com/p/modwsgi/downloads/list


UPDATE July 2015

The above link is no longer valid. Instead see:

  • https://github.com/GrahamDumpleton/mod_wsgi/blob/develop/win32/README.rst
like image 78
Graham Dumpleton Avatar answered Nov 04 '22 15:11

Graham Dumpleton


I would like to find either 2.6 (preferable) or 3.0 (okay) Windows binaries myself, and have looked into this a bit.

There are Windows build steps for mod_wsgi buried deep in the Google Group for it. I think they're out of date; only one person appears to have ever done it and told the world how well it worked out. There may well be problems compiling that require a patch.

I do not think you will need to build your own Apache, or if it matters that the VC++ version is different (though I don't have a ton of evidence for this belief). VC++ version is very important for Python module builds since they rely heavily on the internals of the compiler data structures. I think the Apache module interface is more structured.

You'll probably want to post to the mod_wsgi group if you try this and hit problems, or if you successfully build the modules, please post them as some of us would very much like them but are too busy to get to doing it ourselves :(

like image 34
kquinn Avatar answered Nov 04 '22 17:11

kquinn