[python-win32] Building Extensions with BCC
Mark Lamoreaux
Mark at TriAxialData.com
Wed Sep 15 20:39:52 CEST 2004
Thanks for suggestion Andrew.
Unfortunately, the compiler switch only works for the build command, not the install (i.e. it is not an option for the install command). I downloaded the free Microsoft Visual C toolkit, but it must have a newer version of their compiler and Python refused to build or install using it. I went back and re-built with the Borland compiler, and instead of using the automatic install, I copied the files to the appropriate places and now the library seems to work fine. I'll probably want to get Visual Studio 6 and recompile before putting the extension in a production mode, though.
-----Original Message-----
From: Andrew MacIntyre [mailto:Andrew.MacIntyre at aba.gov.au]
Sent: Thursday, September 09, 2004 5:03 PM
To: Mark Lamoreaux
Subject: RE: [python-win32] Building Extensions with BCC
Supply the compiler switch to the install command.
-----------------------------------------------------------------------
Andrew MacIntyre \ E-mail: andrew.macintyre at aba.gov.au
Planning Branch \ Tel: +61 2 6256 2812
Australian Broadcasting Authority \ Fax: +61 2 6253 3277
-> "These thoughts are mine alone!" <----------------------------------
> -----Original Message-----
> From: Mark Lamoreaux [mailto:Mark at TriAxialData.com]
> Sent: Friday, 10 September 2004 6:53 AM
> To: python-win32 at python.org
> Subject: [python-win32] Building Extensions with BCC
>
>
> Hi,
>
> I'm trying to use/test the IndexedCatalog extension on
> Windows. No binaries existed for this extension, so I'm
> trying to compile it. Unfortunately, I don't have Visual
> Studio 6.0. I do have Borland C++, though, and after several
> small adjustments, was able to successfully build the extension using:
> >python setup.py build --compiler=bcpp
>
> Now that I have it built, I assume I still need to install
> the extension. When I try:
> >python setup.py install
> I receive the following 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."
>
> I've read posts where others have successfully used
> extensions built with BCC in the past, so is there something
> I'm doing wrong in trying to finish the install, or does
> Python 2.3 no longer support building extensions with
> anything other than Visual Studio 6?
>
> Thanks!
> Mark
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
More information about the Python-win32
mailing list