473,724 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weave - inline C

Has anyone had success using weave with gcc for windows (standard
windows distribution python)?

I have my distutils setup to use gcc (via mingw32) - which it does
fine. I've compiled and installed various modules with it. Weave
itself installs fine, picking up the settings from distutils.

However it has it's own version of distutils 'scipy_distutil s' that it
uses to compile the C it is given - which complains that it can't find
msvcc.... The documentation included (which is actually for the 0.2
version) gives no hints and I wondered if anyone had any success in
using it ?

Regards,
Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #1
3 2660
Michael Foord wrote:
Has anyone had success using weave with gcc for windows (standard
windows distribution python)?

I have my distutils setup to use gcc (via mingw32) - which it does
fine. I've compiled and installed various modules with it. Weave
itself installs fine, picking up the settings from distutils.

However it has it's own version of distutils 'scipy_distutil s' that it
uses to compile the C it is given - which complains that it can't find
msvcc.... The documentation included (which is actually for the 0.2
version) gives no hints and I wondered if anyone had any success in
using it ?
Use compiler='gcc' as a keyword argument for weave.inline(), etc.

Yes, the documentation is fantastically out of date.
Regards,
Fuzzy


--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Jul 18 '05 #2
Robert Kern <rk***@ucsd.edu > wrote in message news:<cg******* ***@news1.ucsd. edu>...
Michael Foord wrote:
Has anyone had success using weave with gcc for windows (standard
windows distribution python)?

I have my distutils setup to use gcc (via mingw32) - which it does
fine. I've compiled and installed various modules with it. Weave
itself installs fine, picking up the settings from distutils.

However it has it's own version of distutils 'scipy_distutil s' that it
uses to compile the C it is given - which complains that it can't find
msvcc.... The documentation included (which is actually for the 0.2
version) gives no hints and I wondered if anyone had any success in
using it ?


Use compiler='gcc' as a keyword argument for weave.inline(), etc.

Yes, the documentation is fantastically out of date.


Thanks very much.
I'll try that when I get home tonight.
Much appreciated.
Fuzzy
http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #3
Robert Kern <rk***@ucsd.edu > wrote in message news:<cg******* ***@news1.ucsd. edu>...
Michael Foord wrote:
Has anyone had success using weave with gcc for windows (standard
windows distribution python)?

I have my distutils setup to use gcc (via mingw32) - which it does
fine. I've compiled and installed various modules with it. Weave
itself installs fine, picking up the settings from distutils.

However it has it's own version of distutils 'scipy_distutil s' that it
uses to compile the C it is given - which complains that it can't find
msvcc.... The documentation included (which is actually for the 0.2
version) gives no hints and I wondered if anyone had any success in
using it ?
Use compiler='gcc' as a keyword argument for weave.inline(), etc.


That works fine on the tests I've done so far !

Thanks for your help.

Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html
Yes, the documentation is fantastically out of date.
Regards,
Fuzzy

Jul 18 '05 #4

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

Similar topics

0
1603
by: Jean-Baptiste Richet | last post by:
Hello, weave could be highly usefull to me, but I can't have it work correctly on my PC, and I can't understand the error message. Could you help me ? I installed the latest zip package by "python setup.py install", on a python 2.3 installation (OS = Windows ME), and here is a result when trying it : ========================= IDLE 1.0 >>> import weave
0
1417
by: Jacek Generowicz | last post by:
Does anyone happen to have up-to-date summary instructions for installing weave.inline ? I don't want weave.blitz, I don't want Numeric, and I don't want Scipy. According to the documentation, this is perfectly possible, but the documentation is clearly out of date, and after working around 3 documentation bugs and still not managing to install it, I'm rapidly running out of enthusiasm ... so if anyone has done this recently, I'd...
47
3874
by: Richard Hayden | last post by:
Hi, I have the following code: /******************************** file1.c #include <iostream> extern void dummy(); inline int testfunc() {
0
1022
by: zhuang | last post by:
Hi, I'm having some problems getting weave to work correctly. For now, I'm just testing how to access Numeric arrays under weave. My test code is: from Numeric import * import weave a = zeros((5,5,5,5,5),typecode=Int16)
0
1501
by: Julien Fiore | last post by:
Hi, I have problems trying to install the scipy.weave package. I run Python 2.4 on windows XP and my C compiler is MinGW. Below is the output of scipy.weave.test(). I read that the tests should last several minutes, but in my case it only lasts a few seconds. Thanks in advance for any help. Julien Fiore
0
1549
by: monkeyboy | last post by:
Hello, I'm a new scipy user, and I'm trying to speed up some array code with weave. I'm running xp with gcc from cgywin, and scipy.weave.test() returns an OK status. I'm trying to speed up the code below. I've found a couple of examples of weave on the web, and I think it should be straight forward, but I keep getting the following error when calling weave.blitz(expr). It's complaining about the variable being assigned, I've tried...
2
5770
by: lbolla | last post by:
take a look at Python vs Matlab comparison for numerical computations: numerical-computing-matlab-vs-python+numpy+weave it seems that what stated in a previous thread was true! Python+Numpy results as fast as Matlab. any optimization of Numpy code run much faster than Matlab (up to 10 times faster with pyrex).
2
1504
by: Soren | last post by:
Hi, I have a strange and very annoying problem when using weave in scipy.. when I run the code below.. the first time it needs to compile.. it says <compilingand then python.exe crashes! and no result is shown.. the second time i run it, it does not compile but gives the completely wrong answer.. prints a matrix of all zeros except for point 1,1 in the matrix which seems to have some random high number like -5.39403959e+08. .... !!??
0
1062
by: Soren | last post by:
Hi, I'm trying to make a weave python extension to use in my program. I already did it in inline, but that doesn't work with py2exe (needs compiler), so I'm creating extensions instead using ext_tools. Is there a way I can use blitz with ext_tools? so that I can refer to arrays like a(x,y) in the c code?? I have alot of 2D arrays that needs indexing in the C code..
0
8868
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
8741
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
9389
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
9243
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...
0
9090
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
5996
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4504
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...
0
4771
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3210
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 we have to send another system

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.