Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Compiling disutil modules on Windows

Reply
Thread Tools

Compiling disutil modules on Windows

 
 
Geoff Caplan
Guest
Posts: n/a
 
      08-07-2004
Hi folks,

Enjoying the process of picking up Python, but have come to an
unexpected grinding halt.

I am using the latest ActivePython release on Win2k. When I try to run

python setup.py install

on a disutil package, I get the error:

"Python was built with version 6 of Visual Studio, and extensions need
to be built with the same version of the compiler, but it isn't
installed."

Assuming this is correct, I find it mind-boggling that Active State
have chosen to use an expensive and discontinued commercial compiler!

I am aware that MS have released a free version of the latest Visual
Studio 7 compiler. I have installed this but disutils doesn't
recognise it. I can't find a free release of the MVC++ compiler: does
such a thing exist?

I assumed this would be a FAQ but can't find much in the archives. My
knowledge of C compiling is close to zero, so I am stuck. Any
advice would be much appreciated: this is a show-stopper.

------------------
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154

 
Reply With Quote
 
 
 
 
Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle.
Guest
Posts: n/a
 
      08-07-2004
Hi !

Look the message "Building Python 2.4 extensions with the Microsoft Toolkit
Compiler" from 17 jul 2004

It's interesting...



 
Reply With Quote
 
 
 
 
Geoff Caplan
Guest
Posts: n/a
 
      08-07-2004
Michel,

MCamgntefp> Look the message "Building Python 2.4 extensions with the Microsoft Toolkit
MCamgntefp> Compiler" from 17 jul 2004

Thanks for the link, but I don't think it's a viable solution for me.

First, it seems to be aimed at the official Alpha release of 2.4 which
is compiled with the MVC++ 7. I need to get something working with the
stable Active State distro, which is compiled with MVC++ 6.

Also, Mike says it's aimed at experienced extension developers with
experience of C compilers, and that "It is not really targeted at
end-users." He also says: "Note that this document represents the
findings of a very limited set of tests with what is essentially an
unsupported approach to building extensions. You should expect to
find bugs. No warranty is made that the approach outlined is safe or
appropriate."

I think that this approach would be well beyond my level of
competence!

What is the best way for an end-user with minimal C skills to get
extensions working on Windows? I would abandon the Active State distro
if I had to, but only reluctantly, as in other respects it seems very
convenient.

------------------
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154

 
Reply With Quote
 
Neil Hodgson
Guest
Posts: n/a
 
      08-07-2004
Geoff Caplan:

> I am aware that MS have released a free version of the latest Visual
> Studio 7 compiler. I have installed this but disutils doesn't
> recognise it. I can't find a free release of the MVC++ compiler: does
> such a thing exist?


You could try to use mingw:
http://sebsauvage.net/python/mingw.html

Neil


 
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
Compiling Python (modules) on 64bit Windows - which compiler suite? Ralph Heinkel Python 6 03-22-2012 06:34 PM
Compiling Python on Windows : how to deal with modules ? r2d3 Python 1 05-12-2009 11:53 AM
Cross-compiling error when compiling 2.6.1... Garrett Cooper Python 0 02-24-2009 08:55 PM
Re: Compiling disutil modules on Windows Geoff Caplan Python 1 08-08-2004 10:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57