Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: (Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib,winzip barfs on Python-2.4.1.tar, cannot download bzip2

Reply
Thread Tools

Re: (Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib,winzip barfs on Python-2.4.1.tar, cannot download bzip2

 
 
Jaime Wyant
Guest
Posts: n/a
 
      04-21-2005
If you're really desperate, write a python script that changes ->

#include "python.h"

to

#ifdef _DEBUG
#undef _DEBUG
#include "python.h"
#define _DEBUG
#else
#include "python.h"
#endif

Then run the script each time you generate a new wrapper file and
everything ought to be OK.

jw

On 4/20/05, Bill Davy <(E-Mail Removed)> wrote:
> Hi Jaime,
>
> SWIG-1.3.24/Lib/python/python.swg does not have the [#include "python.h"]
> but has lots of Pythonesque includes but all *.swg
> Still, I am hoping I can make MSVC6 do some of the work of putting things in
> the right place for Release and Debug builds.
>
> Rgds,
> Bill.
>
> "Jaime Wyant" <(E-Mail Removed)> wrote in message
> news:<(E-Mail Removed)>...
> I fight the python24_d.lib problem with swig daily. The way I got
> around it was to modify swig's python configuration module. Mine was
> located at
>
> /lib/swig1.3/python/python.swg
>
> (I'm using cygwin)
>
> At the top, I changed
>
> #include "python.h"
>
> to
>
> #ifdef _DEBUG
> #undef _DEBUG
> #include "python.h"
> #define _DEBUG
> #else
> #include "python.h"
> #endif
>
> Somewhere in the includes, python uses a pragma telling the MSVC
> compiler which library to link the object files against. Because
> you're building a _DEBUG build, you magically get the python24_d.lib
> library.
>
> hth,
> jw
>
> On 4/18/05, Bill Davy <(E-Mail Removed)> wrote:
> > I downlaoded and installed
> > http://www.python.org/ftp/python/2.4.1/python-2.4.1.msi
> >
> > I'm trying to build an extension using SWIG 1.3.24 and the linker needs
> > python24_d.lib (I do not have the DLL either). I've not found it in any

> of
> > the
> > downloads.
> >
> > So I tried to download the source to build it myself. Of
> > http://www.python.org/ftp/python/2.4...-2.4.1.tar.bz2 and
> > http://www.python.org/ftp/python/2.4.1/Python-2.4.1.tgz, WinZip (9.0 SR1)
> > just says "Error reading header after processing 0 entries".
> >
> > Additionally, I've had no joy downloading the unzipper
> > (ftp://sources.redhat.com/pub/bzip2/v...-x86-win32.exe) from the
> > site cited for the unzipper (http://sources.redhat.com/bzip2/). It

> flashed
> > up a
> > black console window momentarily.
> >
> > Oh, this is sooooo frustrating!
> >
> > Can anyone point me in the right direction?
> >
> > And then I can get to grips with my work.
> >
> > tia
> > Bill
> >
> > --
> > http://mail.python.org/mailman/listinfo/python-list
> >

> ----------
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
multicpu bzip2 using os.system or queue using python script harijay Python 2 07-27-2010 06:10 PM
BZip2 Compression with Apache Ant's BZip2 tools.....problem TSchultz55 Java 0 07-26-2005 03:21 PM
(Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2 Bill Davy Python 12 04-22-2005 12:19 PM
RE: (Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib,winzip barfs on Python-2.4.1.tar, cannot download bzip2 Bill Davy Python 0 04-19-2005 09:27 AM
Response.AppendHeader barfs Timo ASP .Net 0 03-23-2005 09:11 PM



Advertisments