473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to build Python modules on windows?

.
Hi,

how can I build python modules on windows? I tried to build numarray[0]
using Microsoft Visual C++ 2003 Toolkit, but got the following error:

---
error: Python was built with version 7.1 of Visual Studio, and
extensions need to be built with the same version of the compiler, but
it isn't installed.
---

So do I need to buy Visual Studio 7.1 to be able to build python modules
on windows? That would explain why there are so few binary packages
available. If this is true, has the python community considerred
switching to compile the standard python distribution using the freely
available compiler from Microsoft?

Thanks in advance for any hints!

Markus
[0]: I do not need to install numarray, but find a decent way to package
and build self-made extensions and use numarray here as an example
Aug 12 '05 #1
2 2338
". <"@bag.python.org wrote:
Hi,

how can I build python modules on windows? I tried to build numarray[0]
using Microsoft Visual C++ 2003 Toolkit, but got the following error:

---
error: Python was built with version 7.1 of Visual Studio, and
extensions need to be built with the same version of the compiler, but
it isn't installed.
---


Are you sure you have setup the environment variables before you build?

Here is a reference: "Building Python Extensions with the MS Toolkit
Compiler" (http://www.vrplumber.com/programming/mstoolkit/)

[snip]

--
Qiangning Hong

I'm usually annoyed by IDEs because, for instance, they don't use VIM
as an editor. Since I'm hooked to that, all IDEs I've used so far have
failed to impress me.
-- Sybren Stuvel @ c.l.python

Get Firefox!
<http://www.spreadfirefox.com/?q=affiliates&amp;id=67907&amp;t=1>
Aug 12 '05 #2
.
Hi,
how can I build python modules on windows? I tried to build numarray[0]
using Microsoft Visual C++ 2003 Toolkit, but got the following error:

---
error: Python was built with version 7.1 of Visual Studio, and
extensions need to be built with the same version of the compiler, but
it isn't installed.
---

Are you sure you have setup the environment variables before you build?

Here is a reference: "Building Python Extensions with the MS Toolkit
Compiler" (http://www.vrplumber.com/programming/mstoolkit/)


Thanks for the pointer. The page states at the beginning:

"Note that this document represents the findings of a very limited set
of tests with what is essentially an unsupported approach to building
extensions. You should expect to find bugs. No warranty is made that
the approach outlined is safe or appropriate."

This raises the question: What is the 'supported' way of building
extensions on Windows? Do I need Visual Studio for that?

Thanks in advance,

Markus
Aug 16 '05 #3

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

Similar topics

1
by: Bren | last post by:
Hi, Pardon my stupid, but I'm having a problem building Boost.Python as per the instructions at http://www.boost.org/libs/python/doc/building.html I got boost-build-2.0-m6.zip from...
3
by: Phil Frost | last post by:
Greetings all. I'm attempting to embed a python interpreter at a very low level in an OS I am writing. Currently I'm stuck with build issues. Firstly, as there is no working C compiler in our OS, I...
3
by: mudd | last post by:
How do I build Python so that I get static libraries instead of dynamic libraries (e.g. build/lib.solaris-2.8-sun4u-2.3/math.so)? John
14
by: Giovanni Bajo | last post by:
Hello, python24.dll is much bigger than python23.dll. This was discussed already on the newsgroup, see the thread starting here:...
1
by: Micheal.LeVine | last post by:
I have not succeeded to build Python 2.4.2 from the source distn for Cygwin on XP (cygwin1.dll version 1005.7.0.0, Cygwin POSIX Emulation DLL). I have applied the "bandaid solution" in README, ...
10
by: Larry Hastings | last post by:
I'm an indie shareware Windows game developer. In indie shareware game development, download size is terribly important; conventional wisdom holds that--even today--your download should be 5MB or...
0
by: Akira Kitada | last post by:
Hi list, I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed to build some of the modules. """ Failed to find the necessary bits to build these modules: _bsddb ...
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
0
by: M.-A. Lemburg | last post by:
On 2008-10-25 20:19, Akira Kitada wrote: Thanks. The errors you are getting appear to be related to either some missing header files or a missing symbol definition to enable these - looking...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...

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.