473,910 Members | 6,463 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 2672
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
1611
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
1431
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
3909
by: Richard Hayden | last post by:
Hi, I have the following code: /******************************** file1.c #include <iostream> extern void dummy(); inline int testfunc() {
0
1032
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
1523
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
1557
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
5784
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
1516
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
1071
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
9879
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
11349
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
10921
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
9727
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...
1
8099
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7250
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();...
1
4776
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
2
4337
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3360
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.