Using python23 to develop an extension for an application that has python22 embedded

John Underwood johnbunderwood at yahoo.ca
Mon Apr 5 16:38:08 EDT 2004


On Mon, 5 Apr 2004 12:56:14 -0700, "Michael Geary"
<Mike at DeleteThis.Geary.com> wrote:

>John Underwood wrote:
>> Can I use python23_d and python23 to develop an extension for a
>> commercial application uses python22.dll? (Providing that I do not use
>> any new features found only in 2.3.)
>>
>> I would bulld version 2.2 but I am having trouble doing this with
>> Visual Studio .NET Standard. (There is a well documented problem with
>> version 2.2 (involving largeint.h) and VS.NET but none of the
>> solutions that I found have worked.)
>>
>> On the other hand, I have successfully built release and debug
>> versions of pythoncore with VS.NET.
>
>Why don't you just install the binary version of 2.2? That would be easier.
>You can have 2.2 and 2.3 installed on the same machine with no problem.
>
>http://www.python.org/2.2.3/
>
>If 2.3 is the version you use most often, you may want to reinstall it after
>installing 2.2, so that your Windows file associations point to it. You can
>just reinstall 2.3 on top of your previous 2.3 installation. (Or maybe
>there's an easier way to do this.)
>
>-Mike
>

I have both 2.2 and 2.3 installed on my computer. My problem has to do
with Visual Studio .NET which will build 2.3 but will not build 2.2.
(MS removed largeint.h which is required by pythoncore in 2.2 when
they went from Visual C++ 6 to VS.NET. I tried supplying largeint.h to
VS.NET but that did not work.)

Since I cannot build 2.2, I do not have python22.dll or python22_d.dll
(the debug version). (They are not shipped with python you have to
produce them yourself.)

The commercial application to which I need to add an extension has
python22.dll in its runtime folder. I have no control over this
application and have to use whichever version they have chosen.

Since I do have python23.dll and python23_d.dll (from a successful
build of 2.3), can I use these to develop an extension for the
aforementioned commercial application if I stay away from any new
features in 2.3 (but not in 2.2)?

-John




More information about the Python-list mailing list