My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 4: Need to implement build scripts for Windows platform.
4 people starred this issue and may be notified of changes. Back to list
 
Reported by Graham.Dumpleton, Mar 10, 2007
Build scripts currently only support UNIX platform. Need to implement some
build scripts for Windows platform.

The simplest way of doing this may be to use Python distutils mechanism in
much the same way that mod_python does for building mod_python on Windows.
Comment 1 by Graham.Dumpleton, Aug 07, 2007
A distutil style script provided by Nicolas Lehuen can be found at:

  http://nicolas.lehuen.com/download/mod_wsgi/

An alternate set of scripts to generate Visual Studio projects files provided by Adal
Chiriliuc can be found at:

  http://adal.chiriliuc.com/temp/win32.zip

Need to come up with something from these to include. Will aim to to do this in later
release and not version 1.0.
Labels: -Milestone-Release1.0
Comment 2 by nimrod.abing, Jul 30, 2008
How about scons? http://www.scons.org/

I have been successfully using it to build my projects on Win32, Linux and FreeBSD.
You need to have Python to build mod_wsgi anyway and scons does not need any
dependencies apart from a working Python. You can also package stand-alone scons with
mod_wsgi to save users of having to download and install scons itself.
Comment 3 by Graham.Dumpleton, Mar 02, 2009
Compiler requirements appear to be:

  Python 2.3 - VC6
  Python 2.4 - VS2003
  Python 2.5 - VS2003
  Python 2.6 - VS2008
Comment 4 by Graham.Dumpleton, Mar 02, 2009
Other requirements. Need to have installed Apache as 'Custom Install' and enable installation of 'Build Headers 
and Libraries' component.
Comment 5 by Graham.Dumpleton, Mar 02, 2009
One cannot use mod_wsgi 2.3 tarball for build. If you do, you must at least make change:

Index: mod_wsgi.c
===================================================================
--- mod_wsgi.c  (revision 1029)
+++ mod_wsgi.c  (revision 1030)
@@ -10036,6 +10036,7 @@
 
 static void wsgi_hook_child_init(apr_pool_t *p, server_rec *s)
 {
+#if defined(MOD_WSGI_WITH_DAEMONS)
     WSGIProcessGroup *entries = NULL;
     WSGIProcessGroup *entry = NULL;
 
@@ -10053,6 +10054,7 @@
             entry->listener_fd = -1;
         }
     }
+#endif
 
     /* Setup Python in Apache worker processes. */
 


Comment 6 by Graham.Dumpleton, Mar 03, 2009
Latest scripts provided by user for building mod_wsgi with Python 2.6 attached to discussion:

  http://groups.google.com/group/modwsgi/browse_thread/thread/2c214e9a51603bec

This apparently includes an actual mod_wsgi.so binary for Python 2.6/Apache 2.2.
Comment 7 by ivan.melnychuk, Mar 31, 2009
Any chance to host pre-compiled binaries for windows?
Thank you.
Comment 8 by Graham.Dumpleton, Mar 31, 2009
Latest binaries are available for Python 2.4/2.5 at:

  http://adal.chiriliuc.com/mod_wsgi/

am trying to compile them myself for next release. May only be able to provide Python 2.6 binaries though.
Comment 9 by Graham.Dumpleton, Apr 12, 2009
Some 64 bit binaries for Windows at:

  http://siyobik.info/wsgi/
Comment 10 by Graham.Dumpleton, Jul 06, 2009
Makefiles for Windows builds included in subversion trunk for 3.0.
Status: Started
Labels: Milestone-Release3.0
Comment 11 by Graham.Dumpleton, Nov 21, 2009
Version 3.0 of mod_wsgi now released with makefiles for Windows when using Python 2.6 and 3.1.
Status: Fixed
Sign in to add a comment

Hosted by Google Code