473,479 Members | 2,060 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Building C extensions

Well I'm just courious: if I want to buid a C extension, I shoul use
the same compiler that has been used to build python (right?). Since
python has been built using Visual C, how can I build an extension if
I don't have Visual Studio?

PAolo
Nov 6 '06 #1
3 1120

Paolo Pantaleo wrote:
Well I'm just courious: if I want to buid a C extension, I shoul use
the same compiler that has been used to build python (right?). Since
python has been built using Visual C, how can I build an extension if
I don't have Visual Studio?

PAolo
Use mingw32. It should work fine for most extensions.

For example, see
http://groups.google.com/group/comp....2260fe4d4b7de9
and the followup messages.

casevh

Nov 6 '06 #2
JW
On Mon, 06 Nov 2006 14:03:54 +0100, Paolo Pantaleo wants to build a C
extension (presumably for Windows):

A few months ago, I suffered the same misfortune of needing to port a
pyrex-generated extension to Windows. I'm sure it's easier than I made
it, but have a look at the thread:

http://tinyurl.com/yb4bps

If you're developing under Windows (you poor fellow!), you may actually
have a slightly easier time than did I.

Jim Wilson
Gainesville, FL
Nov 6 '06 #3
Paolo Pantaleo schrieb:
Well I'm just courious: if I want to buid a C extension, I shoul use
the same compiler that has been used to build python (right?). Since
python has been built using Visual C, how can I build an extension if
I don't have Visual Studio?
If you don't have mingw32, either, you can't build the extension module.
You need to get a supported compiler. If you don't have one, find
somebody who builds the extension for you.

Regards,
Martin
Nov 6 '06 #4

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

Similar topics

6
2390
by: Chris Gonnerman | last post by:
I'll be quick. Here's a transcript: C:\usr\WConio-1.5>python setup.py build --compiler=mingw32 running build running build_py running build_ext building '_WConio' extension writing...
7
6382
by: Anthony Baxter | last post by:
I'm trying to build a binary of fastaudio (the wrapper for the PortAudio library, from http://www.freenet.org.nz/python/pyPortAudio/) for Python 2.3. There's a lot of FAQs and the like out there...
6
1379
by: Mike C. Fletcher | last post by:
I've put together a page describing how to build Python 2.4 extensions with the free (as in beer, not libre) Microsoft Visual C++ Toolkit compiler. So far I've been able to build Numpy 23.1,...
1
1557
by: TPJ | last post by:
Hello, I have another, probably stupid, question. I'm working on some Python project, and I use some extensions written in C. I do all the development on my GNU/Linux box, so my setup.py script...
6
2218
by: JW | last post by:
I have a lousy little Python extension, generated with the generous help of Pyrex. In Linux, things are simple. I compile the extension, link it against some C stuff, and *poof*! everything...
0
2427
by: CptDondo | last post by:
I hope someone can shed some light on this. I am working with an arm9 platform. I've been trying to build php4 with extensions enabled, but I am failing miserably. I was able to build ming as a...
1
1410
by: Howard Lightstone | last post by:
Has there been any progress on being able to build extensions with MSVC8 (aka Visual Studio 2005)? Since the "free" compiler from Microsoft is now VC8, I *assume* this will be the new...
4
2506
by: vedrandekovic | last post by:
Hi, I have already install Microsoft visual studio .NET 2003 and MinGw, when I try to build a extension: python my_extension_setup.py build ( or install ) , I get an error: LINK : fatal...
15
3183
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much like the package/extension builders who volunteer...
3
1595
by: Gordon | last post by:
Has anybody had any success compiling a PHP build for Leopard, specifically for Leopard running on a 64 bit Intel architecture? I have been using the Entropy builds up to now but there has been a...
0
6903
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
7071
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...
1
6726
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...
0
6861
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...
1
4763
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2987
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...
0
1291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
557
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
170
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.