473,804 Members | 2,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VisualStudio200 5 supported in distutils

mg
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 VisualStudio200 5. 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 VisualStudio200 5 in distutils
is scheduled in the Python developments or better, if someone has
experiences or patch to support VisualStudio200 5 in distutils.

Thanks,
Mathieu.
Aug 2 '06 #1
8 2213
mg schrieb:
Unfortunately, distutils does not support VisualStudio200 5. 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 VisualStudio200 5 in distutils
is scheduled in the Python developments or better, if someone has
experiences or patch to support VisualStudio200 5 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 incompatibiliti es 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
Aug 2 '06 #2
mg schrieb:
Unfortunately, distutils does not support VisualStudio200 5. 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 VisualStudio200 5 in distutils
is scheduled in the Python developments or better, if someone has
experiences or patch to support VisualStudio200 5 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 incompatibiliti es 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
Aug 2 '06 #3
Martin v. Löwis napisa³(a):
>>Unfortunately , distutils does not support VisualStudio200 5. 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 VisualStudio200 5 in distutils
is scheduled in the Python developments or better, if someone has
experiences or patch to support VisualStudio200 5 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 incompatibiliti es 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/
Aug 2 '06 #4
mg
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 VisualStudio200 5 thank to project files provided
by Mr Python himself. So, Python is not yet ready to support completely
VisualStudio200 5: Python can be compiled with VisualStudio200 5 but a
VisualStudio200 5-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:
mg schrieb:
>Unfortunatel y, distutils does not support VisualStudio200 5. 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 VisualStudio200 5 in distutils
is scheduled in the Python developments or better, if someone has
experiences or patch to support VisualStudio200 5 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 incompatibiliti es 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
Aug 3 '06 #5
Jarek Zgoda schrieb:
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_S DK are both set.
Then distutils will use the compiler from PATH, rather than the
pre-configured one.

Regards,
Martin
Aug 7 '06 #6
mg schrieb:
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 VisualStudio200 5 thank to project files provided
by Mr Python himself. So, Python is not yet ready to support completely
VisualStudio200 5: Python can be compiled with VisualStudio200 5 but a
VisualStudio200 5-compiled-Python can not install additional packages.
As I just wrote in a different message: Make sure DISTUTILS_USE_S DK
and MSSdk are both set, and arrange PATH to point to the compiler to
want to use; then distutils will obey you.

Regards,
Martin
Aug 7 '06 #7
mg schrieb:
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 VisualStudio200 5 thank to project files provided
by Mr Python himself. So, Python is not yet ready to support completely
VisualStudio200 5: Python can be compiled with VisualStudio200 5 but a
VisualStudio200 5-compiled-Python can not install additional packages.
As I just wrote in a different message: Make sure DISTUTILS_USE_S DK
and MSSdk are both set, and arrange PATH to point to the compiler to
want to use; then distutils will obey you.

Regards,
Martin
Aug 7 '06 #8
Martin v. Löwis napisa³(a):
>>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_S DK 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/
Aug 7 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2313
by: Christian Seberino | last post by:
I have a program that has Python and C code. I added Extension stuff to setup.py and all .c and .h files get into tarball fine. (I have something like Extension("foo", glob.glob("bar/*.") ) When I try to INSTALL the package it says header (.h) file is an unknown type. How fix this???
1
2658
by: Mathieu Malaterre | last post by:
Hello, I thought this would be easy but I guess I didn't get the distutil feeling. I am trying to write a setup for install my package but I don't understand how to do that. organisation: setup.py /bin/
15
4127
by: Colin J. Williams | last post by:
The distutils download page has: -------------------------------------------------------- Current stable release The current stable release is Distutils 1.0.2; you can download it as: * Distutils-1.0.2.tar.gz (source distribution) (233k) * Distutils-1.0.2.zip (source distribution) (274k) * Distutils-1.0.2.win32.exe (Windows installer) (187k)
1
1720
by: Terry Hancock | last post by:
Some time ago, I got the idea that I wanted to build image resources from vector graphic originals, instead of marshalling hundreds of tiny little icon images by hand. I wrote "BuildImage" to do this for me, and so far, it works very well, so I'm trying to make it easier to use and available to more developers. There is a brief (and somewhat dated) tutorial explaining what BuildImage itself does at:
0
1879
by: Maarten Sneep | last post by:
I'm trying to build PyBison on Mac OS X, and I'm running into some problems with the distutils. Just for starters: PyBison requires Pyrex. This is not a problem, and Pyrex seems to work without problems, at least the primes sample module shows a nice 25 to 30 fold speed increase over the pure python version. I used the distutils to create the module from the primes.pyx sample, following the setup.py from the PyBison distrubution:
2
1474
by: Blair LeGent | last post by:
Following the directions in "Python in a Nutshell" (an excellent book), I entered the C code for "helloworld.c", saved it as a file, and entered this script and saved it as setup.py: from distutils.core import setup, Extension setup(name='helloworld', ext_modules= )]) Then, following directions, I type "python setup.py install" from a C:\> prompt. I get these messages:
1
1140
by: Wilbert Berendsen | last post by:
Hi all, I want to convert a python project from Makefiles to distutils. Currently the makefiles perform some tasks like building a PNG icon from a SVN file etc. How can I add such commands (including timestamp checking) to a setup.py file, so that it runs when I call 'python setup.py build' ? I can write python functions to perform those command, and I found timestamp checking functions in distutils.dep_util, but just can't find the...
0
1468
by: newbie73 | last post by:
OS: Vista Python 2.5.2.2 (ActiveState Software Installation) Running latest Cygwin release The error generated is pasted below - please help. - Luis ***************************************
1
4087
by: David Cournapeau | last post by:
Hi, I am trying to make numpy build with python 2.6 on windows, and it has been a bumpy road. Building with MS tools works OK, but building with mingw is still problematic. The problems are linked to manifest, and msvcr versions issues. Here is my understanding and how far I got: - python 2.6 is built with VS 2008, and msvcr 9: numpy has to be built against the exact same runtime to work. - msvcr 9 is not publicly available on most...
0
9711
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9593
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9169
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.