Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 2nd, 2006, 02:45 PM
mg
Guest
 
Posts: n/a
Default VisualStudio2005 supported in distutils

Hello,

I try to compile Python and several packages (like Numarray) with Visual
Studio 2005. I downloaded the last version of Python from Subversion,
and project files are provided for Visual Studio 2005. With some few
simple corrections, everything compile and Python run correctly.

Unfortunately, distutils does not support VisualStudio2005. I tried to
modify the file msvccompiler.py without success (this case requires to
support some changes of the Visual Studio 8 register for both Win32 and
Win64). So, I wonder if the integration of VisualStudio2005 in distutils
is scheduled in the Python developments or better, if someone has
experiences or patch to support VisualStudio2005 in distutils.

Thanks,
Mathieu.
  #2  
Old August 2nd, 2006, 10:35 PM
Martin v. Löwis
Guest
 
Posts: n/a
Default Re: VisualStudio2005 supported in distutils

mg schrieb:
Quote:
Unfortunately, distutils does not support VisualStudio2005. I tried to
modify the file msvccompiler.py without success (this case requires to
support some changes of the Visual Studio 8 register for both Win32 and
Win64). So, I wonder if the integration of VisualStudio2005 in distutils
is scheduled in the Python developments or better, if someone has
experiences or patch to support VisualStudio2005 in distutils.
You shouldn't attempt to do that. Even if you manage to convince
distutils to use VS 2005 to compile your extension, the resulting
code may crash Python because of obscure incompatibilities between
the compiler that was used to compile Python (VS 2003) and the compiler
that was used to compile the extension (VS 2005).

Whether or not it will actually crash depends on obscure details
of the API that the extension uses.

Regards,
Martin
  #3  
Old August 2nd, 2006, 10:35 PM
Martin v. Löwis
Guest
 
Posts: n/a
Default Re: VisualStudio2005 supported in distutils

mg schrieb:
Quote:
Unfortunately, distutils does not support VisualStudio2005. I tried to
modify the file msvccompiler.py without success (this case requires to
support some changes of the Visual Studio 8 register for both Win32 and
Win64). So, I wonder if the integration of VisualStudio2005 in distutils
is scheduled in the Python developments or better, if someone has
experiences or patch to support VisualStudio2005 in distutils.
You shouldn't attempt to do that. Even if you manage to convince
distutils to use VS 2005 to compile your extension, the resulting
code may crash Python because of obscure incompatibilities between
the compiler that was used to compile Python (VS 2003) and the compiler
that was used to compile the extension (VS 2005).

Whether or not it will actually crash depends on obscure details
of the API that the extension uses.

Regards,
Martin
  #4  
Old August 2nd, 2006, 10:45 PM
Jarek Zgoda
Guest
 
Posts: n/a
Default Re: VisualStudio2005 supported in distutils

Martin v. Löwis napisa³(a):
Quote:
Quote:
>>Unfortunately, distutils does not support VisualStudio2005. I tried to
>>modify the file msvccompiler.py without success (this case requires to
>>support some changes of the Visual Studio 8 register for both Win32 and
>>Win64). So, I wonder if the integration of VisualStudio2005 in distutils
>>is scheduled in the Python developments or better, if someone has
>>experiences or patch to support VisualStudio2005 in distutils.
>
You shouldn't attempt to do that. Even if you manage to convince
distutils to use VS 2005 to compile your extension, the resulting
code may crash Python because of obscure incompatibilities between
the compiler that was used to compile Python (VS 2003) and the compiler
that was used to compile the extension (VS 2005).
>
Whether or not it will actually crash depends on obscure details
of the API that the extension uses.
Sure, but what if I succesfully compile Python with VS 2005? Hier ist
der Hund begraben, distutils cann't handle this compiler so I'll be
unable to compile any extension for my home-baken Python.

--
Jarek Zgoda
http://jpa.berlios.de/
  #5  
Old August 3rd, 2006, 08:45 AM
mg
Guest
 
Posts: n/a
Default Re: VisualStudio2005 supported in distutils

I know the incompatibility problem to have Python compiled with one
compiler and packages with another one. Nevertheless, in my case, Python
is well compiled with VisualStudio2005 thank to project files provided
by Mr Python himself. So, Python is not yet ready to support completely
VisualStudio2005: Python can be compiled with VisualStudio2005 but a
VisualStudio2005-compiled-Python can not install additional packages.

So, if someone can help me or provides me a solution, I am very
interested ;-)

Martin v. Löwis wrote:
Quote:
mg schrieb:
>
Quote:
>Unfortunately, distutils does not support VisualStudio2005. I tried to
>modify the file msvccompiler.py without success (this case requires to
>support some changes of the Visual Studio 8 register for both Win32 and
>Win64). So, I wonder if the integration of VisualStudio2005 in distutils
>is scheduled in the Python developments or better, if someone has
>experiences or patch to support VisualStudio2005 in distutils.
>>
>
You shouldn't attempt to do that. Even if you manage to convince
distutils to use VS 2005 to compile your extension, the resulting
code may crash Python because of obscure incompatibilities between
the compiler that was used to compile Python (VS 2003) and the compiler
that was used to compile the extension (VS 2005).
>
Whether or not it will actually crash depends on obscure details
of the API that the extension uses.
>
Regards,
Martin
>
  #6  
Old August 7th, 2006, 12:55 PM
Martin v. Löwis
Guest
 
Posts: n/a
Default Re: VisualStudio2005 supported in distutils

Jarek Zgoda schrieb:
Quote:
Sure, but what if I succesfully compile Python with VS 2005? Hier ist
der Hund begraben, distutils cann't handle this compiler so I'll be
unable to compile any extension for my home-baken Python.
It sure can. Just open a "Visual Studio Command Prompt" (or whatever
its name), and make sure MSSdk and DISTUTILS_USE_SDK are both set.
Then distutils will use the compiler from PATH, rather than the
pre-configured one.

Regards,
Martin
  #7  
Old August 7th, 2006, 12:55 PM
Martin v. Löwis
Guest
 
Posts: n/a
Default Re: VisualStudio2005 supported in distutils

mg schrieb:
Quote:
I know the incompatibility problem to have Python compiled with one
compiler and packages with another one. Nevertheless, in my case, Python
is well compiled with VisualStudio2005 thank to project files provided
by Mr Python himself. So, Python is not yet ready to support completely
VisualStudio2005: Python can be compiled with VisualStudio2005 but a
VisualStudio2005-compiled-Python can not install additional packages.
As I just wrote in a different message: Make sure DISTUTILS_USE_SDK
and MSSdk are both set, and arrange PATH to point to the compiler to
want to use; then distutils will obey you.

Regards,
Martin
  #8  
Old August 7th, 2006, 12:55 PM
Martin v. Löwis
Guest
 
Posts: n/a
Default Re: VisualStudio2005 supported in distutils

mg schrieb:
Quote:
I know the incompatibility problem to have Python compiled with one
compiler and packages with another one. Nevertheless, in my case, Python
is well compiled with VisualStudio2005 thank to project files provided
by Mr Python himself. So, Python is not yet ready to support completely
VisualStudio2005: Python can be compiled with VisualStudio2005 but a
VisualStudio2005-compiled-Python can not install additional packages.
As I just wrote in a different message: Make sure DISTUTILS_USE_SDK
and MSSdk are both set, and arrange PATH to point to the compiler to
want to use; then distutils will obey you.

Regards,
Martin
  #9  
Old August 7th, 2006, 01:35 PM
Jarek Zgoda
Guest
 
Posts: n/a
Default Re: VisualStudio2005 supported in distutils

Martin v. Löwis napisa³(a):
Quote:
Quote:
>>Sure, but what if I succesfully compile Python with VS 2005? Hier ist
>>der Hund begraben, distutils cann't handle this compiler so I'll be
>>unable to compile any extension for my home-baken Python.
>
It sure can. Just open a "Visual Studio Command Prompt" (or whatever
its name), and make sure MSSdk and DISTUTILS_USE_SDK are both set.
Then distutils will use the compiler from PATH, rather than the
pre-configured one.
Thanks, didn't know that.

--
Jarek Zgoda
http://jpa.berlios.de/
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles