Re: [Pythonmac-SIG] py2app testing modulegraph

2010-07-23 Thread Ronald Oussoren

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

 Ronald Oussoren wrote:
 Ronald Oussoren wrote:
 modulegraph should be platform independent
 indeed -- it's used by bbfreeze:
 
 http://pypi.python.org/pypi/bbfreeze/0.96.5
 
 Though I think he's forked it. But it might be good to get in touch and see 
 if he's got patches to integrate.
 I really don't understand why people think it is a good idea to fork 
 opensource packages unless the original author is completely unresponsive 
 and/or moves the project in a different direction. Even then I'd let the 
 original author know about that.
 
 Neither do I -- indeed I specifically recommended that he report back to this 
 list, and maybe even share more code with Py2app, as he was interested in 
 making bb-freeze Mac-compatible at one point.
 
 But if he was interested in working more collaboratively, he probably 
 wouldn't have started a brand new python bundling project in the first place!

That depends, maybe he just wants to have one project that works everywhere, 
and then trying to merge py2exe, py2app and other projects is probably way much 
more work than just writing something from scratch.

 
 Ronald Oussoren wrote:
 And they very helpfully even didn't bother to document what they
 changed, or which version they forked. That makes comparing the two
 unnecessarily hard, and hence I won't bother to do so.
 
 Darn -- what a pain! Have you tried asking him? He's been pretty responsive 
 on his list.

No.

 
 By the way -- he did post on this list at one point looking for volunteers to 
 work on the Mac version of bb-freeze, and I don't think he got any takers.

I won't volunteer either, py2app works for me and works on python3.

Ronald



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


[Pythonmac-SIG] py2app testing modulegraph

2010-07-23 Thread engelbert gruber
hi

i am trying to setup a modulegraph test that triggers missing import
for ifilter, imap

some hurdles

* i am not at a mac currently.

  a good thing, this results in cross platform tests

* altgraph must be installed because pkg_resource require does not
find it otherwise

  this is not so good, as i prefer not to install things but just
copy/symlink especially
  while developing

* modulegraph.util uses ::

if sys.version_info[0] != 2:
import re
cookie_re = re.compile(bcoding[:=]\s*([-\w.]+))

  it is correct, that this wont be executed for python versions 2.*,
  but it will be compiled and the syntax ``bsomething`` works
  only from 2.6 up

cheers
___
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 testing modulegraph

2010-07-22 Thread Ronald Oussoren

On 21 Jul, 2010, at 18:54, Christopher Barker wrote:

 Ronald Oussoren wrote:
 modulegraph should be platform independent
 
 indeed -- it's used by bbfreeze:
 
 http://pypi.python.org/pypi/bbfreeze/0.96.5
 
 Though I think he's forked it. But it might be good to get in touch and see 
 if he's got patches to integrate.

I really don't understand why people think it is a good idea to fork opensource 
packages unless the original author is completely unresponsive and/or moves the 
project in a different direction. Even then I'd let the original author know 
about that.

Ronald



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


Re: [Pythonmac-SIG] py2app testing modulegraph

2010-07-22 Thread Ronald Oussoren

On 22 Jul, 2010, at 15:11, Ronald Oussoren wrote:

 
 On 21 Jul, 2010, at 18:54, Christopher Barker wrote:
 
 Ronald Oussoren wrote:
 modulegraph should be platform independent
 
 indeed -- it's used by bbfreeze:
 
 http://pypi.python.org/pypi/bbfreeze/0.96.5
 
 Though I think he's forked it. But it might be good to get in touch and see 
 if he's got patches to integrate.
 
 I really don't understand why people think it is a good idea to fork 
 opensource packages unless the original author is completely unresponsive 
 and/or moves the project in a different direction. Even then I'd let the 
 original author know about that.

And they very helpfully even didn't bother to document what they changed, or 
which version they forked. That makes comparing the two unnecessarily hard, and 
hence I won't bother to do so.

Ronald

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


Re: [Pythonmac-SIG] py2app testing modulegraph

2010-07-22 Thread Christopher Barker

Ronald Oussoren wrote:

Ronald Oussoren wrote:

modulegraph should be platform independent

indeed -- it's used by bbfreeze:

http://pypi.python.org/pypi/bbfreeze/0.96.5

Though I think he's forked it. But it might be good to get in touch and see if 
he's got patches to integrate.


I really don't understand why people think it is a good idea to fork opensource 
packages unless the original author is completely unresponsive and/or moves the 
project in a different direction. Even then I'd let the original author know 
about that.


Neither do I -- indeed I specifically recommended that he report back to 
this list, and maybe even share more code with Py2app, as he was 
interested in making bb-freeze Mac-compatible at one point.


But if he was interested in working more collaboratively, he probably 
wouldn't have started a brand new python bundling project in the first 
place!


Ronald Oussoren wrote:

And they very helpfully even didn't bother to document what they
changed, or which version they forked. That makes comparing the two
unnecessarily hard, and hence I won't bother to do so.


Darn -- what a pain! Have you tried asking him? He's been pretty 
responsive on his list.


By the way -- he did post on this list at one point looking for 
volunteers to work on the Mac version of bb-freeze, and I don't think he 
got any takers.


-Chris




--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/ORR(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
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


[Pythonmac-SIG] py2app testing modulegraph

2010-07-21 Thread engelbert gruber
hi

modulegraph.py os_listdir hangs on none existing dirs (strange) ::

  def os_listdir(path):

os.listdir with support for zipfiles

try:
return os.listdir(path)
except os.error:
info = sys.exc_info()

rest = ''
while not os.path.exists(path):
path, r = os.path.split(path)
rest = os.path.join(r, rest)

workaround ::

rest = ''
prev_rest = None
while not os.path.exists(path) and prev_rest != rest:
prev_rest = rest
path, r = os.path.split(path)
rest = os.path.join(r, rest)

is there a unittest function to verify endless loops ?

cheers


REPEATED message from correct list account:

i am trying to setup a modulegraph test that triggers missing import
for ifilter, imap

some hurdles

* i am not at a mac currently.

 a good thing, this results in cross platform tests

* altgraph must be installed because pkg_resource require does not
find it otherwise

 this is not so good, as i prefer not to install things but just
copy/symlink especially
 while developing

* modulegraph.util uses ::

   if sys.version_info[0] != 2:
   import re
   cookie_re = re.compile(bcoding[:=]\s*([-\w.]+))

 it is correct, that this wont be executed for python versions 2.*,
 but it will be compiled and the syntax ``bsomething`` works
 only from 2.6 up

cheers
___
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 testing modulegraph

2010-07-21 Thread Ronald Oussoren

On 21 Jul, 2010, at 9:24, engelbert gruber wrote:

 hi
 
 modulegraph.py os_listdir hangs on none existing dirs (strange) ::

I'll look into this at the europython sprints.

 
 is there a unittest function to verify endless loops ?

No. Sadly enough py2app and its dependencies hardly have tests at all (although 
some are hidden in the source code).

Adding unittests is on my todo-list, but writing tests for already existing 
code is no fun.

 
 cheers
 
 
 REPEATED message from correct list account:
 
 i am trying to setup a modulegraph test that triggers missing import
 for ifilter, imap
 
 some hurdles
 
 * i am not at a mac currently.
 
 a good thing, this results in cross platform tests

modulegraph should be platform independent, although I'm not 100% sure about 
interaction with macholib without looking at the code.

 
 * altgraph must be installed because pkg_resource require does not
 find it otherwise
 
 this is not so good, as i prefer not to install things but just
 copy/symlink especially
 while developing

This won't be changed, you obviously have to install dependencies before using 
a packages.

I'd advise you to look into virtualenv to create sandboxes for development.

 
 * modulegraph.util uses ::
 
   if sys.version_info[0] != 2:
   import re
   cookie_re = re.compile(bcoding[:=]\s*([-\w.]+))
 
 it is correct, that this wont be executed for python versions 2.*,
 but it will be compiled and the syntax ``bsomething`` works
 only from 2.6 up

The b... is a bug and will get fixed. 

Ronald



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


Re: [Pythonmac-SIG] py2app testing modulegraph

2010-07-21 Thread Christopher Barker

Ronald Oussoren wrote:

modulegraph should be platform independent


indeed -- it's used by bbfreeze:

http://pypi.python.org/pypi/bbfreeze/0.96.5

Though I think he's forked it. But it might be good to get in touch and 
see if he's got patches to integrate.


-Chris

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/ORR(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
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG