how to/help installing impure packages

2007-10-26 Thread owl
I love easy_install.

I love watching it search and complete.
It's when it doesn't complete that causes me grief.
I don't program a lot these days and am relatively new to python but I
often wind up installing packages on both unix and windows machines
and often the 'build' part of the install fails with not being able to
find the compiler or compile problems.

If there are any articles/pointers that talk about this, i.e. how to
troubleshoot, I'd love to know.

If I was writing such an article I'd start with:
- how easy_install uses distutils (even this is an assumption on my
part)
- where it looks in the env. for stuff on both unix/linux/windows
- what files to tweak to help it find stuff if your env. is different.
- i.e. can I config some file to have packages not try and compile but
use pure python if possible?
- i.e. w/o speedups
- how to work around problems such as easy_install failing because a
site is down
- i.e. how to manually download, 'unpack' & 'build'
- since packages fail to build, how to set things up to download &
keep things around when they fail so you can tinker with it until you
get it working!

I love python, and nothing against impure packages, but when they
cause problems it starts to 'tarnish the dream' of an agnostic
language.

Thoughts?

-- 
http://mail.python.org/mailman/listinfo/python-list


extension to idle to clear screen - but how to write to screen?

2007-11-15 Thread owl
and here I thought I was going to finally be able to change the world
AND contribute back to python with my amazing clear screen extension -
but I can't get it to work. ;(

Copying from ZoomHeight.py and someone else's clever print suggestion:
-
# My Clear extension: clear a window

class Clear:

menudefs = [
('windows', [
('_Clear', '<>'),
 ])
]

def __init__(self, editwin):
self.editwin = editwin

def clear_event(self, event):
for i in range(60):
print
--

It shows up as a menu item, but does not do anything. No output,
nuffin.
I did get some sort of 'no connection msg' playing around which leads
me to believe that I can't really write to the window (at least not
this simplistically)...

Pointers?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: extension to idle to clear screen - but how to write to screen?

2007-11-22 Thread owl
On Nov 17, 3:27 pm, Tal Einat <[EMAIL PROTECTED]> wrote:
> On Nov 15, 10:20 pm, owl <[EMAIL PROTECTED]> wrote:
>
>
>
> > and here I thought I was going to finally be able to change the world
> > AND contribute back to python with my amazing clear screen extension -
> > but I can't get it to work. ;(
>
> > Copying from ZoomHeight.py and someone else's clever print suggestion:
> > -
> > # My Clear extension: clear a window
>
> > class Clear:
>
> > menudefs = [
> > ('windows', [
> > ('_Clear', '<>'),
> >  ])
> > ]
>
> > def __init__(self, editwin):
> > self.editwin = editwin
>
> > def clear_event(self, event):
> > for i in range(60):
> > print
> > --
>
> > It shows up as a menu item, but does not do anything. No output,
> > nuffin.
> > I did get some sort of 'no connection msg' playing around which leads
> > me to believe that I can't really write to the window (at least not
> > this simplistically)...
>
> > Pointers?
>
> Try this:
> self.editiwin.write('\n'*60)
>
> - Tal Einat
> reduce(lambda m,x:[m[i]+s[-1] for i,s in enumerate(sorted(m))],
>   [[chr(154-ord(c)) for c in '.&-&,l.Z95193+179-']]*18)[3]
>
> P.S. Feel free to contact the idle-dev mailing list: idle-dev 
> python (dot) org

Thanks!
-- 
http://mail.python.org/mailman/listinfo/python-list