Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python and binary compatibility

Reply
Thread Tools

Python and binary compatibility

 
 
Ambush Commander
Guest
Posts: n/a
 
      01-25-2008
I'm a newbie to Python; various packages I've used in the past (Lyx,
LilyPond and Inkscape, to name a few) have bundled Python with them
for various scripting needs, and Cygwin also had an install lying
around, so when I started to use Mercurial (also Python) I decided
that I'd consolidate all of these installations into a single Windows
installation for general use, as well as for me to properly learn the
language.

Whoo, it's been a journey.

The primary problem involves binary extensions to the Python
interpreter itself, which Mercurial uses. The only C compiler I have
on my machine is Visual Studio 2005 Express, but Python's binary
distribution was compiled with VS 2003, so the installer refuses to
compile the package. I understand that Python 3 uses VS 2008, but
that's no good for me as it will probably break all of the scripts.

So, I'm trying to figure out what I should do. Mercurial's binary
distribution was built using MingW, and I do have Cygwin lying around
but I'd like to go for the "native" solution for the most speed. If I
use MingW, I might as well use their pre-packaged binary. I could
recompile Python with MSVC 2005, but I expect that will be its own can
of worms. ActiveState is closed source and appears to have the wrong
MSVC dependencies. All my troubles could apparently be fixed if I
could acquire a copy of VS 2003, but Microsoft has made it incredibly
difficult to find the download for it (I don't think it exists).

Any suggestions?
 
Reply With Quote
 
 
 
 
Martin v. Löwis
Guest
Posts: n/a
 
      01-25-2008
> All my troubles could apparently be fixed if I
> could acquire a copy of VS 2003, but Microsoft has made it incredibly
> difficult to find the download for it (I don't think it exists).
>
> Any suggestions?


You can get copies of VS 2003 from ebay fairly easily.

Regards,
Martin
 
Reply With Quote
 
 
 
 
Thomas Heller
Guest
Posts: n/a
 
      01-25-2008
Ambush Commander schrieb:
> I'm a newbie to Python; various packages I've used in the past (Lyx,
> LilyPond and Inkscape, to name a few) have bundled Python with them
> for various scripting needs, and Cygwin also had an install lying
> around, so when I started to use Mercurial (also Python) I decided
> that I'd consolidate all of these installations into a single Windows
> installation for general use, as well as for me to properly learn the
> language.
>
> Whoo, it's been a journey.
>
> The primary problem involves binary extensions to the Python
> interpreter itself, which Mercurial uses. The only C compiler I have
> on my machine is Visual Studio 2005 Express, but Python's binary
> distribution was compiled with VS 2003, so the installer refuses to
> compile the package. I understand that Python 3 uses VS 2008, but
> that's no good for me as it will probably break all of the scripts.
>
> So, I'm trying to figure out what I should do. Mercurial's binary
> distribution was built using MingW, and I do have Cygwin lying around
> but I'd like to go for the "native" solution for the most speed. If I
> use MingW, I might as well use their pre-packaged binary. I could
> recompile Python with MSVC 2005, but I expect that will be its own can
> of worms. ActiveState is closed source and appears to have the wrong
> MSVC dependencies. All my troubles could apparently be fixed if I
> could acquire a copy of VS 2003, but Microsoft has made it incredibly
> difficult to find the download for it (I don't think it exists).
>
> Any suggestions?


Maybe this helps?

http://www.develer.com/oss/GccWinBinaries

Thomas

 
Reply With Quote
 
Christian Heimes
Guest
Posts: n/a
 
      01-25-2008
Ambush Commander wrote:
> The primary problem involves binary extensions to the Python
> interpreter itself, which Mercurial uses. The only C compiler I have
> on my machine is Visual Studio 2005 Express, but Python's binary
> distribution was compiled with VS 2003, so the installer refuses to
> compile the package. I understand that Python 3 uses VS 2008, but
> that's no good for me as it will probably break all of the scripts.


Python 2.6 and 3.0 will use VS 2008. It's not recommended to compile
Python extension with a different compiler but you can compile the
extension with 2003. It will work as long as the extensions don't
exchange file handlers or other handlers. Google for "Mixing CRTs" will
reveal more details.

> So, I'm trying to figure out what I should do. Mercurial's binary
> distribution was built using MingW, and I do have Cygwin lying around
> but I'd like to go for the "native" solution for the most speed. If I
> use MingW, I might as well use their pre-packaged binary. I could
> recompile Python with MSVC 2005, but I expect that will be its own can
> of worms. ActiveState is closed source and appears to have the wrong
> MSVC dependencies. All my troubles could apparently be fixed if I
> could acquire a copy of VS 2003, but Microsoft has made it incredibly
> difficult to find the download for it (I don't think it exists).


You can use MinGW32 to compile the extension, too. Or use the free
toolchain as described at
http://wiki.python.org/moin/Building...e_MS_C_Toolkit

Christian

 
Reply With Quote
 
Joshua Kugler
Guest
Posts: n/a
 
      01-25-2008
Christian Heimes wrote:
> You can use MinGW32 to compile the extension, too. Or use the free
> toolchain as described at
> http://wiki.python.org/moin/Building...e_MS_C_Toolkit


That page has a link to the Microsoft Visual C++ Toolkit 2003 page, which
then says it's been discontinued and to use Visual C++ 2005 Express
Edition. Sigh...

j

 
Reply With Quote
 
Christian Heimes
Guest
Posts: n/a
 
      01-26-2008
Joshua Kugler wrote:
> That page has a link to the Microsoft Visual C++ Toolkit 2003 page, which
> then says it's been discontinued and to use Visual C++ 2005 Express
> Edition. Sigh...


You can still find some copies of the free toolkit on the internet.

Christian

 
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
Binary compatibility across Python versions? Philip Semanchuk Python 0 07-26-2010 07:22 PM
STL objects and binary compatibility osama178@gmail.com C++ 18 05-14-2008 09:13 AM
1.8/1.9 compiled library binary compatibility Alex Fenton Ruby 2 09-26-2007 04:12 PM
binary extension compatibility on OS X Alex Fenton Ruby 1 08-15-2006 05:45 PM
Binary compatibility 5.8.0 -> 5.8.7 Trond Hasle Amundsen Perl Misc 1 06-08-2005 11:20 PM



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