Re: [Matplotlib-users] question about building from source on windows

2007-08-06 Thread Charlie Moad
I got a successful build using VS2003 on Vista.  Here is the env dump:


BUILDING MATPLOTLIB
matplotlib: 0.90.1
python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC
v.1310 32 bit (Intel)]
  platform: win32
   Windows version: (6, 0, 6000, 2, '')

REQUIRED DEPENDENCIES
 numpy: 1.0.3
 freetype2: found, but unknown version (no pkg-config)

OPTIONAL DEPENDENCIES
  Gtk+: gtk+: 2.10.11, glib: 2.12.11, pygtk: 2.10.4,
pygobject: 2.12.3
   Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
  wxPython: no
* wxPython not found
Qt: no
   Qt4: no
 Cairo: 1.2.6
libpng: found, but unknown version (no pkg-config)

[Edit setup.cfg to suppress the above messages]


And here is the patch to make it work:

Index: C:/workspace/matplotlib/setupext.py
===
--- C:/workspace/matplotlib/setupext.py (revision 3677)
+++ C:/workspace/matplotlib/setupext.py (working copy)
@@ -676,10 +676,10 @@
 if sys.platform=='win32':
 major, minor1, minor2, s, tmp = sys.version_info
 if major==2 and minor1 in [3, 4, 5]:
-module.include_dirs.extend(['win32_static/include/tcl84'])
+module.include_dirs.extend(['win32_static/include/tcl8.4'])
 module.libraries.extend(['tk84', 'tcl84'])
 elif major==2 and minor1==2:
-module.include_dirs.extend(['win32_static/include/tcl83'])
+module.include_dirs.extend(['win32_static/include/tcl8.3'])
 module.libraries.extend(['tk83', 'tcl83'])
 else:
 raise RuntimeError('No tk/win32 support for this python
version yet')
Index: C:/workspace/matplotlib/ttconv/ttutil.cpp
===
--- C:/workspace/matplotlib/ttconv/ttutil.cpp   (revision 3677)
+++ C:/workspace/matplotlib/ttconv/ttutil.cpp   (working copy)
@@ -32,10 +32,10 @@
   va_start(arg_list, format);
   char buffer[PRINTF_BUFFER_SIZE];

-  int size = vsnprintf(buffer, PRINTF_BUFFER_SIZE, format, arg_list);
+  int size = _vsnprintf(buffer, PRINTF_BUFFER_SIZE, format, arg_list);
   if (size >= PRINTF_BUFFER_SIZE) {
 char* buffer2 = (char*)malloc(size);
-vsnprintf(buffer2, size, format, arg_list);
+_vsnprintf(buffer2, size, format, arg_list);
 free(buffer2);
   } else {
 this->write(buffer);


I don't have time to add the proper #ifdef to the cpp file at this
moment.  I can't remember to proper check off the top of my head.
I'll commit the fix to the setupext.py typo.

Did someone want the build?  If so, e-mail me and I'll post it somewhere.

- Charlie

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How to use different fonts in mathtext

2007-08-06 Thread Michael Droettboom
There is now experimental support for custom fonts in math mode.

You'll need to set "mathtext.use_cm" to False, and then set up a mapping 
from each of the TeX font names to the name of your desired font.

It is assumed that the fonts are Unicode fonts -- it will use the same 
font for both Latin and Greek characters.  If your font doesn't have 
Greek characters, it will (optionally) fall back on the Computer Modern 
fonts.  There isn't (at present) a way to fall back to a Greek-only 
font.  (There would, IMHO, have to be a compelling reason to add that 
functionality, since there are too many font options to test already ;)

Here's an excerpt from matplotlib.template:

# The following settings allow you to select the fonts in math mode.
# They map from a TeX font name to a 3-tuple of the form:
#(family, weight, style)
# These settings are only used if mathtext.use_cm is False, otherwise, the
# Bakoma TeX Computer Modern fonts are used.
#mathtext.cal : (['cursive'], 'normal', 'normal')
#mathtext.rm  : (['serif'], 'normal', 'normal')
#mathtext.tt  : (['monospace'], 'normal', 'normal')
#mathtext.it  : (['serif'], 'normal', 'oblique')
#mathtext.bf  : (['serif'], 'bold', 'normal')
#mathtext.sf  : (['sans-serif'], 'normal', 'normal')
#mathtext.use_cm : True
#mathtext.fallback_to_cm : True  # When True, use symbols from the 
Computer Modern
 # fonts when a symbol can not be found in one 
of
 # the user-specified math fonts.

Rob Hetland wrote:
> However, I often just want to put powers on units -- e.g., m^3 s^{-1}, 
> and serifed fonts look terrible as superscripts for sans fonts.

Agreed.

> Perhaps there is another way to get what I want?

Try the above, and let me know how it goes...

> Also, the main problem I find when mixing CM symbols (e.g., \epsilon) 
> with other fonts is that the CM fonts seem small.  Perhaps there is a 
> way to jack up the symbol size to that it matches the non-CM fonts in a 
> more reasonable way?

If the Unicode font has both Latin and Greek characters in it, those 
characters should play well together.  More generally, though, I agree, 
and one might run into that problem using some of the more obscure math 
operators.  Perhaps scaling one or the other font to get the x-heights 
to match might work.  I'll have to look into that further...

Thanks for spurring me on to get this custom font stuff together.

Cheers,
Mike

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Probing scalar values...

2007-08-06 Thread Angus McMorland
On 07/08/07, fred <[EMAIL PROTECTED]> wrote:
> Angus McMorland a écrit :
>
> > Since all sorts of data can be displayed in am mpl window (e.g. a
> > plot, a contour...) you have to tell it how to access the correct
> > scalar value to display. You could do this with the
> > motion_notify_event. Register it during init, something like:
> >
> > self.canvas.mpl_connect('motion_notify_event', self.mouse_move_callback)
> >
> > then in mouse_move_callback:
> >
> > def mouse_move_callback(self, evt):
> > xpos, ypos = evt.xdata, evt.ydata
> > val = self.data[numpy.floor(xpos), numpy.floor(ypos)]
> > status_str = "x: %4.2f  y: %4.2f   I:%4.2f" \
> >   % (xpos, ypos, val)
> > self.SetStatusText(status_str)
> >
> > where data is your image variable. This works in a wx.Frame object,
> > which has a SetStatusString method for displaying the values. I'm sure
> > you could find an equivalent in your traits app.
> >
> >
> Thanks, I'll look at this asap (as I got other stuff "on fire").
>
> BTW, I can't ever get (in fact, I don't know how) working
> the coords to be displayed in my traits app.
> I guess this is more related to traits, not to mpl.

For what it's worth, mpl embedded in wx also _requires_ the use of
motion_notify_event to get co-ordinates to display. It doesn't happen
by default except in stand-alone mpl as far as I can tell.

> But the "mpl embedded in traits app guru" is on holydays for now.
>
> Let's wait...
>
> Cheers,
>
> --
> http://scipy.org/FredericPetit
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>


-- 
AJC McMorland, PhD Student
Physiology, University of Auckland

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How to use different fonts in mathtext

2007-08-06 Thread Rob Hetland

> For example, the freefonts don't have a very complete math symbol  
> set at all.  Falling back on the Computer Modern fonts for just  
> those symbols would work, but won't look very nice.  That said, a  
> lot of users can probably do without those extended symbols  
> altogether.

You say that CM fonts/symbols look bad mixed with other fonts -- that  
is also my experience from years of LaTeXing...

However, I often just want to put powers on units -- e.g., m^3 s^ 
{-1}, and serifed fonts look terrible as superscripts for sans fonts.

Perhaps there is another way to get what I want?

Also, the main problem I find when mixing CM symbols (e.g., \epsilon)  
with other fonts is that the CM fonts seem small.  Perhaps there is a  
way to jack up the symbol size to that it matches the non-CM fonts in  
a more reasonable way?

-Rob


Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
http://pong.tamu.edu/~rob
phone: 979-458-0096, fax: 979-845-6331



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How to use different fonts in mathtext

2007-08-06 Thread Michael Droettboom
I believe the rcParams you're referring to actually affect the (now 
deprecated) mathtext2, which explains why they're having no effect ;) 
Sorry about that.

These will soon be replaced with a new way to handle custom Unicode 
fonts, that is mostly working, but may not produce the best results. 
When typesetting math, symbols are pulled in from a number of fonts, and 
it looks best when all symbols are designed to match.

For example, the freefonts don't have a very complete math symbol set at 
all.  Falling back on the Computer Modern fonts for just those symbols 
would work, but won't look very nice.  That said, a lot of users can 
probably do without those extended symbols altogether.

The other nice thing that the Computer Modern fonts have is multiple 
sizes of many of the delimiters.  For instance, as the '[' gets taller, 
it doesn't get wider as well.

In any case, once I have an interface available for fonts to be replaced 
by the end user, I'll let you know and you can decide for yourself.  I 
think I'm probably judging that option harshly based on the complete set 
of features available, not on a common subset that matters most.

Cheers,
Mike

Rob Hetland wrote:
> I would like to use sans-serif math fonts in mathtext (inspired by  
> Tufte -- most of his examples use sans fonts).
> 
> Apparently there are rcParams options to be set, however, I keep  
> getting computer modern math fonts.  I would like to use the  
> FreeSansOblique for the math italic font.  How do I do this?
> 
> -Rob
> 
> 
> 
> p.s.  I *love* the new mathtext -- nice work.
> 
> 
> p.s.s.  For those who don't pay attention to fonts, the Free font  
> sans series seems to be a pretty faithful reproduction of Helvetica.   
> I have renewed my enthusiasm for Helvetica after reading this article:
> 
> http://www.ms-studio.com/articles.html
> 
> 
> 
> Rob Hetland, Associate Professor
> Dept. of Oceanography, Texas A&M University
> http://pong.tamu.edu/~rob
> phone: 979-458-0096, fax: 979-845-6331
> 
> 
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] How to use different fonts in mathtext

2007-08-06 Thread Rob Hetland

I would like to use sans-serif math fonts in mathtext (inspired by  
Tufte -- most of his examples use sans fonts).

Apparently there are rcParams options to be set, however, I keep  
getting computer modern math fonts.  I would like to use the  
FreeSansOblique for the math italic font.  How do I do this?

-Rob



p.s.  I *love* the new mathtext -- nice work.


p.s.s.  For those who don't pay attention to fonts, the Free font  
sans series seems to be a pretty faithful reproduction of Helvetica.   
I have renewed my enthusiasm for Helvetica after reading this article:

http://www.ms-studio.com/articles.html



Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
http://pong.tamu.edu/~rob
phone: 979-458-0096, fax: 979-845-6331



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Contour, numbering contourlones

2007-08-06 Thread Jouni K . Seppänen
George LeCompte <[EMAIL PROTECTED]> writes:

>The contours labels show 3 zeros beyond the decimal point.  Is it
>possible to force these labels to integers? If so how? If not why
>not?

clabel(CS, inline=1, fontsize=10, fmt='%3.0f')

>Is there a way to browse previous postings to matplotlib-users
> without looking month by month? For example can I bring up all
> postings regarding 'contour'?

This was discussed recently:
http://thread.gmane.org/gmane.comp.python.matplotlib.general/9915/focus=9917

You can search the list on at least sourceforge.net, gmane.org, and
mail-archive.com:

http://sourceforge.net/search/?ml_name=matplotlib-users&type_of_search=mlists&group_id=80706&words=contour
http://search.gmane.org/?query=contour&group=gmane.comp.python.matplotlib.general
http://www.mail-archive.com/search?q=contour&l=matplotlib-users%40lists.sourceforge.net

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Custom contour labels?

2007-08-06 Thread Jouni K . Seppänen
"Zelakiewicz, Scott (GE, Research)"
<[EMAIL PROTECTED]> writes:

> I get one contour line as expected, but instead of printing the contour
> level (50) I would like to print a simple string like "Some String."  I
> tried using the fmt option of clabel, but it requires a way to stuff in
> the level value (ie. fmt="Some String %f"). Is it possible to use a
> simple string for these labels?

I don't know if there is a recommended way, but here is a quick hack:

class FormatFaker(object):
def __init__(self, str): self.str = str
def __mod__(self, stuff): return self.str

A=arange(100).reshape(10,10)
CS=contour(A,[50,])
CS.clabel(fmt=FormatFaker('Some String'))
show()

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Custom contour labels?

2007-08-06 Thread Zelakiewicz, Scott (GE, Research)
Hi,
I am trying to make a contour plot using custom labels that consist only
of text strings but can not figure it out.  For example, if I do the
following:

A=arange(100)
A=A.reshape(10,10)
CS=contour(A,[50,])
clabel(CS)

I get one contour line as expected, but instead of printing the contour
level (50) I would like to print a simple string like "Some String."  I
tried using the fmt option of clabel, but it requires a way to stuff in
the level value (ie. fmt="Some String %f"). Is it possible to use a
simple string for these labels?

Thanks,
Scott.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] 3D scatterplot histogram + error ellipses

2007-08-06 Thread Alexander Borghgraef
Hi all,

 I'm trying to display the histograms of lists of 2D vectors together with
their error ellipses in a 3D plot.
Plotting the histograms as 3D scatterplots is easy using
matplotlib.axes3d.Axes3D( ).scatter3D( x, y, h ),
but how do I draw the error ellipse in the ( x, y ) plane. I know how to
create a matplotlib.patches.Ellipse
object, but I'm pretty clueless on how to integrate it into the figure. Any
help?

-- 
Alex Borghgraef
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Probing scalar values...

2007-08-06 Thread fred
Angus McMorland a écrit :

> Since all sorts of data can be displayed in am mpl window (e.g. a
> plot, a contour...) you have to tell it how to access the correct
> scalar value to display. You could do this with the
> motion_notify_event. Register it during init, something like:
>
> self.canvas.mpl_connect('motion_notify_event', self.mouse_move_callback)
>
> then in mouse_move_callback:
>
> def mouse_move_callback(self, evt):
> xpos, ypos = evt.xdata, evt.ydata
> val = self.data[numpy.floor(xpos), numpy.floor(ypos)]
> status_str = "x: %4.2f  y: %4.2f   I:%4.2f" \
>   % (xpos, ypos, val)
> self.SetStatusText(status_str)
>
> where data is your image variable. This works in a wx.Frame object,
> which has a SetStatusString method for displaying the values. I'm sure
> you could find an equivalent in your traits app.
>
>   
Thanks, I'll look at this asap (as I got other stuff "on fire").

BTW, I can't ever get (in fact, I don't know how) working
the coords to be displayed in my traits app.
I guess this is more related to traits, not to mpl.
But the "mpl embedded in traits app guru" is on holydays for now.

Let's wait...

Cheers,

-- 
http://scipy.org/FredericPetit


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] question about building from source on windows

2007-08-06 Thread John Hunter
On 8/6/07, Michael Droettboom <[EMAIL PROTECTED]> wrote:

>  from setupext import get_win32_compiler
>  if sys.platform == 'win32' and get_win32_compiler() == 'mingw32':
>  for module in ext_modules:
>  module.libraries.append("msvcrt")

That message in setupext.py:

  NOTE, if you are building on python24 on win32, see
  http://mail.python.org/pipermail/python-list/2004-December/254826.html

refers to a patch for distutils to work around that bug.  It now
appears this link is stale.  Your approach is better anyway, because
it doesn't require patching distutils.  I had assumed that because you
guys were following the build instructions closely, that this *was
not* the source of your problems.  But it looks like the same bug, or
at least a closely related one.  Haven't been able to find an active
link for that post, but your approach probably obviates it anyway.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] question about building from source on windows

2007-08-06 Thread william ratcliff
I was using version 3673 of svn (matplotlib) when it worked.  I had a clean
build directory (I usually kill it before trying to build a new version,
along with whatever is in lib/site-packages).  I'm not sure of the exact
version I was using when it was dying (I want to say somewhere around
3660-69, but I tried a lot last week without success).

Cheers,
William

On 8/6/07, Michael Droettboom <[EMAIL PROTECTED]> wrote:
>
> william ratcliff wrote:
> > No, with whatever is in the current version of svn, it now works on the
> > intel quad as well.  Thanks!
>
> That's great news!  While it's great to hear that it's working, it would
> be even better to track down the cause of the failure, if possible.
>
> Do you mean the current version of SVN of numpy or matplotlib?  It
> doesn't like there were any commits to matplotlib over the weekend.
>
> Do you happen to know what SVN revision was breaking before you updated
> and everything worked?  When you finally updated and things worked, did
> you clean the build directory by any chance?  Python distutils doesn't
> always track dependencies correctly and rebuild enough stuff, which can
> sometimes be the cause of problems.
>
> > I just tried following Michael's build
> > instructions (incidentally, could his last additions to setup.py be
> > checked in to svn, along with a profile25.bat file?)
>
> I was wary of committing that change until it had been reviewed by
> someone else with more mingw32 experience.  It worked for me, but it has
> the feel of something slightly hackish...
>
> For review, in case some other Windows guys are listening, I adding the
> following right before the final "distrib = setup(..." in setup.py:
>
>  from setupext import get_win32_compiler
>  if sys.platform == 'win32' and get_win32_compiler() == 'mingw32':
>  for module in ext_modules:
>  module.libraries.append("msvcrt")
>
> As for profile25.bat, I can't find it in SVN.  Maybe whoever is
> responsible for win32_static.tar.gz needs to do it.  Not sure...
>
> Cheers,
> Mike
>


profile25.bat_text
Description: Binary data
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] question about building from source on windows

2007-08-06 Thread Charlie Moad
I'll give the build a try on windows tonight using my usual methods.

- Charlie

On 8/6/07, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> william ratcliff wrote:
>  > No, with whatever is in the current version of svn, it now works on the
>  > intel quad as well.  Thanks!
>
> That's great news!  While it's great to hear that it's working, it would
> be even better to track down the cause of the failure, if possible.
>
> Do you mean the current version of SVN of numpy or matplotlib?  It
> doesn't like there were any commits to matplotlib over the weekend.
>
> Do you happen to know what SVN revision was breaking before you updated
> and everything worked?  When you finally updated and things worked, did
> you clean the build directory by any chance?  Python distutils doesn't
> always track dependencies correctly and rebuild enough stuff, which can
> sometimes be the cause of problems.
>
> > I just tried following Michael's build
> > instructions (incidentally, could his last additions to setup.py be
> > checked in to svn, along with a profile25.bat file?)
>
> I was wary of committing that change until it had been reviewed by
> someone else with more mingw32 experience.  It worked for me, but it has
> the feel of something slightly hackish...
>
> For review, in case some other Windows guys are listening, I adding the
> following right before the final "distrib = setup(..." in setup.py:
>
>  from setupext import get_win32_compiler
>  if sys.platform == 'win32' and get_win32_compiler() == 'mingw32':
>  for module in ext_modules:
>  module.libraries.append("msvcrt")
>
> As for profile25.bat, I can't find it in SVN.  Maybe whoever is
> responsible for win32_static.tar.gz needs to do it.  Not sure...
>
> Cheers,
> Mike
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] question about building from source on windows

2007-08-06 Thread Michael Droettboom
william ratcliff wrote:
 > No, with whatever is in the current version of svn, it now works on the
 > intel quad as well.  Thanks!

That's great news!  While it's great to hear that it's working, it would 
be even better to track down the cause of the failure, if possible.

Do you mean the current version of SVN of numpy or matplotlib?  It 
doesn't like there were any commits to matplotlib over the weekend.

Do you happen to know what SVN revision was breaking before you updated 
and everything worked?  When you finally updated and things worked, did 
you clean the build directory by any chance?  Python distutils doesn't 
always track dependencies correctly and rebuild enough stuff, which can 
sometimes be the cause of problems.

> I just tried following Michael's build
> instructions (incidentally, could his last additions to setup.py be
> checked in to svn, along with a profile25.bat file?)

I was wary of committing that change until it had been reviewed by 
someone else with more mingw32 experience.  It worked for me, but it has 
the feel of something slightly hackish...

For review, in case some other Windows guys are listening, I adding the 
following right before the final "distrib = setup(..." in setup.py:

 from setupext import get_win32_compiler
 if sys.platform == 'win32' and get_win32_compiler() == 'mingw32':
 for module in ext_modules:
 module.libraries.append("msvcrt")

As for profile25.bat, I can't find it in SVN.  Maybe whoever is 
responsible for win32_static.tar.gz needs to do it.  Not sure...

Cheers,
Mike

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users