John Hunter <jdhunter@...> writes:
> >>>>> "Alexander" == Alexander Mont <alexmont1@...> writes:
> Alexander> line 100, in add_base_flage incdirs = [os.path.join(p,
> Alexander> 'include') for p in basedir[sys, platform] KeyError:
> Alexander> 'cygwin'
> This is almost certainly a typo. I guess you mean 'sys.platform'
> Alexander> How do I fix this? I installed numarray and I changed the NUMERIX value in the matplotlibrc file from Numeric to numarray but I still have the same problem.
> This has nothing to do with the numerix setting. Check out
> setupext.py and add an entry to the basedir dictionary to reflect your
> local path information. If you get something that works, please post
> it so we can include it in the standard distro.
I don't have my cygwin machine with me at the moment, but I recall
needing to add a line to setupext.py something like:
'linux' : ['/usr/local', '/usr',], ### This line already present
'cygwin' : ['/usr/local', 'usr',],
Once I'd solved this, I had problems with the path for Tk - but I
can't remember exactly what they were
> Is there a reason you don't want to use the pre-built win32 binaries?
> Most windows users are reasonably happy with that.
I can't speak for Alexander, but I went down the same path (and have
managed to get matplotlib working under cygwin ). I did so mainly
because of familiarity with the unix style of doing things. I use
cygwin to get a unix style way of working, but still have word etc
available without dual booting.
Specifically, I have a python/c module that I wanted to use to read in
the data I wanted to plot with matplotlib - and while this module was
easy to compile under cygwin, I couldn't work out how to compile it
for use with win32 (using gcc as I don't have MSVC).
 If sending you this source would be useful, then I can do so - I'd
hoped to write a recipe, but have been too busy. The main problem was
getting all the other things that are necessary for matplotlib, but
not included with cygwin to build, rather than matplotlib itself.