[Pythonmac-SIG] py2app trunk buglet

2010-07-23 Thread Christopher Barker

Ronald,

I found the following tiny bug in py2app/build_app.py:

near line 475, there is:

allres = chain(getattr(dist, 'data_files', ()) or (), 
self.resources)


but "chain" was never defined.

A simple:

from itertools import chain

At the top of the file seems to have fixed it.

-Chris



--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

chris.bar...@noaa.gov
Index: py2app/build_app.py
===
--- py2app/build_app.py (revision 80)
+++ py2app/build_app.py (working copy)
@@ -14,6 +14,7 @@
 import shlex
 import shutil
 from cStringIO import StringIO
+from itertools import chain
 
 from setuptools import Command
 from distutils.util import convert_path
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] py2app trunk buglet

2010-07-24 Thread Ronald Oussoren

On 23 Jul, 2010, at 21:45, Christopher Barker wrote:

> Ronald,
> 
> I found the following tiny bug in py2app/build_app.py:
> 
> near line 475, there is:
> 
>allres = chain(getattr(dist, 'data_files', ()) or (), self.resources)
> 
> but "chain" was never defined.
> 
> A simple:
> 
> from itertools import chain
> 
> At the top of the file seems to have fixed it.

That's odd, it should have been their. It is in my checkout (Revision: 93), and 
I didn't just check in.

Ronald

> )
> -Chris
> 
> 
> 
> -- 
> Christopher Barker, Ph.D.
> Oceanographer
> 
> Emergency Response Division
> NOAA/NOS/OR&R(206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115   (206) 526-6317   main reception
> 
> chris.bar...@noaa.gov
> Index: py2app/build_app.py
> ===
> --- py2app/build_app.py   (revision 80)
> +++ py2app/build_app.py   (working copy)
> @@ -14,6 +14,7 @@
> import shlex
> import shutil
> from cStringIO import StringIO
> +from itertools import chain
> 
> from setuptools import Command
> from distutils.util import convert_path
> ___
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG



smime.p7s
Description: S/MIME cryptographic signature
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG