ftp.logilab.fr versus pypi.python.org

Scott Haneda talklists at newgeo.com
Tue May 4 21:53:40 PDT 2010


On May 4, 2010, at 7:14 AM, Arthur Lutz wrote:

> Logilab's software is published in both places. The process in the two cases 
> is not exactly the same (for example for pypi, we use the setuptools automagic
> upload functionnality)... I admit that the md5sum is not the same and we're
> looking into that... firing up meld on the two uncompressed versions doesn't
> seem to pickup any differences. 

It seems there are at least two files that are throwing off the md5:
nodes.py and setup.py

$diff -u logilab-astng-0.18.0/nodes.py logilab-astng-0.18.0\ 2/nodes.py 
--- logilab-astng-0.18.0/nodes.py	2009-03-24 06:53:33.000000000 -0700
+++ logilab-astng-0.18.0 2/nodes.py	2009-03-19 09:34:02.000000000 -0700
@@ -357,7 +357,13 @@
         if isinstance(value, (list, tuple) ):
             result.append(  indent + field + " = [" )
             for child in value:
-                _repr_tree(child, result, indent, _done)
+                if isinstance(child, (list, tuple) ):
+                    # special case for Dict # FIXME
+                     _repr_tree(child[0], result, indent, _done)
+                     _repr_tree(child[1], result, indent, _done)
+                     result.append(indent + ',')
+                else:
+                    _repr_tree(child, result, indent, _done)
             result.append(  indent + "]" )
         else:
             result.append(  indent + field + " = " )

$diff -u logilab-astng-0.18.0/setup.py logilab-astng-0.18.0\ 2/setup.py 
--- logilab-astng-0.18.0/setup.py	2009-03-24 07:08:55.000000000 -0700
+++ logilab-astng-0.18.0 2/setup.py	2009-03-19 07:16:42.000000000 -0700
@@ -22,7 +22,7 @@
     from distutils.command import install_lib
     USE_SETUPTOOLS = 0
     
-sys.modules.pop('__pkginfo__', None)
+
 # import required features
 from __pkginfo__ import modname, version, license, short_desc, long_desc, \
      web, author, author_email

* This is diff'ing the http against the ftp location, so logilab-astng-0.18.0/setup.py came from the http protocol and logilab-astng-0.18.0\ 2/setup.py came from the ftp protocol.

Not sure if that helps you any, but the files are clearly different in two cases, where the http files appear to have a fix in them, or at least, a comment mentioning a special case.  I only made a quick md5 comparison one liner, it was not recursive, so there could be more files that are different in the two root directories and one of their respective sub-drictories.
-- 
Scott * If you contact me off list replace talklists@ with scott@ * 



More information about the macports-dev mailing list