473,509 Members | 7,333 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_distutils' 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 2644
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_distutils' 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_distutils' 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_distutils' 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
1590
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...
0
1406
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,...
47
3800
by: Richard Hayden | last post by:
Hi, I have the following code: /******************************** file1.c #include <iostream> extern void dummy(); inline int testfunc() {
0
1007
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 =...
0
1487
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...
0
1540
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...
2
5761
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...
2
1489
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...
0
1054
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...
0
7237
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,...
0
7137
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
7347
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,...
1
7073
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
7506
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...
0
5656
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,...
1
5062
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
3218
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
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.