I wouldn't normally plug our distros on this list, however this thread goes directly to what we provide...

ActiveState ActivePython and PyPM pretty much solves this problem, providing pre-built python for win/lin/osx. Via PyPM, You can install the mysql package(1) as well as many others, which for windows users definitely saves on the compile process.

Shane Caraveo
ActiveState

On 10-02-22 11:06 PM, Weiwei wrote:
I found alternative way to get things going.

I stuck with python2.5 just because  I only see python2.5 version of
Mysql-python (windows binary )on its official site
(http://sourceforge.net/projects/mysql-python/files/)

But i got python26 version of mysql-python windows binary from here
http://timvalenta.wordpress.com/2009/02/04/python-26-mysql/

So i moved everything to 2.6 now

Thanks again



On Mon, Feb 22, 2010 at 9:59 PM, Weiwei<[email protected]>  wrote:
I compiled using Visual Studio 2003

seems still getting the error

-------------------------------------------------------------------
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin>nmake -f
c:\data\mod_wsgi-3.1\win32-ap22py26.mk

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1073: don't know how to make 'mod_wsgi.c'
Stop.
--------------------------------------------------------------------



make file i am using:

CPPFLAGS = \
  /DWIN32 \
  /DNDEBUG \
  /I"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include" \
  /I"C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include" \
  /I"c:\Program Files\Apache Software Foundation\Apache2.2\include" \
  /I"c:\python25\include"

CFLAGS = \
  /MD \
  /GF \
  /Gy \
  /O2 \
  /Wall \
  /Zc:wchar_t \
  /Zc:forScope

LDFLAGS = \
  /link \
  "/LIBPATH:C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib" \
  "/LIBPATH:C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib" \
  "/LIBPATH:c:\Program Files\Apache Software Foundation\Apache2.2\lib" \
  /LIBPATH:c:\python25\libs \
  /OPT:REF \
  /OPT:ICF=2 \
  /RELEASE \
  /SUBSYSTEM:WINDOWS

LDLIBS = \
  python25.lib \
  libhttpd.lib \
  libapr-1.lib \
  libaprutil-1.lib

mod_wsgi.so : mod_wsgi.c
        cl $(CPPFLAGS) $(CFLAGS) $? /LD $(LDFLAGS) $(LDLIBS) /OUT:$@


clean :
        del *.obj *.so *.so.manifest *.lib *.exp

On Mon, Feb 22, 2010 at 9:46 PM, Graham Dumpleton
<[email protected]>  wrote:
You must use Visual Studio 2003 to compile for Python 2.5. You cannot
use Visual Studio 2008.

On 23 February 2010 16:42, Weiwei<[email protected]>  wrote:
Thanks,

Actually i installed Visual C++ 2008 Express , and i got "c:\Program
Files\Microsoft SDKs\Windows\v6.0A\Include".

And I replaced python26 with python25 in win32-ap22py26.mk.

And i ran "nmake -f win32-ap22py26.mk"

But i got this error

---------------------------------

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1073: don't know how to make 'mod_wsgi.c'
Stop.
----------------------------------

Something I might miss?


Thanks again




On Mon, Feb 22, 2010 at 9:05 PM, Graham Dumpleton
<[email protected]>  wrote:
On 23 February 2010 15:58, Graham Dumpleton<[email protected]>  wrote:
On 23 February 2010 15:38, Weiwei<[email protected]>  wrote:
Thanks Graham,

I have Visual Studio 2003 installed so i will replace 'c:\Program
Files\Microsoft Visual Studio 9.0\VC\include' with C:\Program
Files\Microsoft Visual Studio .NET 2003\Vc7\include , but i seems not
seeing "c:\Program Files\Microsoft SDKs\Windows\v6.0A\Include" , what
i  should install for it?

Probably don't have to install anything, you just need to find where
the equivalent is installed for older Visual Studio 2003 and refer to
it instead. Similarly for the Lib directory in that location. It is
possible you don't even need to have that in include/lib path as the
shell variables for INC and LIB set in command shell created may be
sufficient.

Looking at:

  
http://www.chadvernon.com/blog/tutorials/directx9/setting-up-visual-studio-net-2003/
  http://exodusdev.com/tech-tips/visual-studio-2003-standard-includes

You might find the equivalent under 'PlatformSDK' under where ever
Visual Studio 2003 is installed.

Am not sure what the FrameworkDir might be referring to. Might be the
.NET stuff and so possibly not relevant.

Graham

Anyway, that is a guess. I am not sure I have ever used Visual Studio
2003. Only prior version to Visual Studio 2008 I may have used would
have been VC6.0.

Graham

On Mon, Feb 22, 2010 at 8:10 PM, Graham Dumpleton
<[email protected]>  wrote:
On 23 February 2010 15:01, Weiwei<[email protected]>  wrote:
Hi all,

I found Precompiled Binaries for python2.6 and apache22 on this page
http://code.google.com/p/modwsgi/wiki/InstallationOnWindows

Are there Precompiled Binaries for python2.5 and apache22 i can download ?

I am going to try and get precompiled Python 2.5 binaries for Windows
for next release, as have managed to get hold of a copy of Visual
Studio 2003, but no promises.

If you have a copy of that older compiler, then it is possible to
compile it yourself per instructions in that wiki page, except that
you would need to copy the makefile for py26 and call it
win32-ap22py26.mk and then modify paths inside of it for where Python
installed. There is a chance you will need to delete the line:

  mt -manifest [email protected] -outputresource:$@;2

in the makefile however as that may be specific to newer Microsoft compiler.

Graham

--
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to