last minute fixes for 0.14rc1

Alexander Belchenko bialix at ukr.net
Thu Jan 18 16:02:49 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Arbash Meinel пишет:
> Alexander Belchenko wrote:
>> When I make installer for win32 I found 1 average thing that I need to fix
>> and 1 little thing that we could to fix either in 0.14 or 0.15.
>> Diff attached.
> 
> 
> ------------------------------------------------------------------------
> 
> === modified file 'setup.py'
> --- setup.py	2007-01-15 03:31:34 +0000
> +++ setup.py	2007-01-17 22:52:02 +0000
> @@ -17,7 +17,7 @@
>  META_INFO = {'name':         'bzr',
>               'version':      bzrlib.__version__,
>               'author':       'Canonical Ltd',
> -             'author_email': 'bazaar-ng at lists.ubuntu.com',
> +             'author_email': 'bazaar at lists.ubuntu.com',
>               'url':          'http://www.bazaar-vcs.org/',
>               'description':  'Friendly distributed version control system',
>               'license':      'GNU GPL v2',
> 
> ^- If you are going to fix the email, it should be
> "bazaar at lists.canonical.com". (they both work, but that is the
> 'official' address).

Oops. I'm looking at this page https://lists.ubuntu.com/mailman/listinfo/bazaar
see ubuntu.com host, see that bazaar-ng becomes bazaar, and make 2+2
and voila.

> 
> 
> @@ -197,6 +197,12 @@
>      if sys.version.startswith('2.4'):
>          # adding elementtree package
>          additional_packages.append('elementtree')
> +    elif sys.version.startswith('2.5'):
> +        additional_packages.append('xml.etree')
> +    else:
> +        import warnings
> +        warnings.warn('Unknown Python version.\n'
> +                      'Please check setup.py script for compatibility.')
> 
>      options_list = {"py2exe": {"packages": BZRLIB['packages'] +
>                                             additional_packages,
> 
> 
> I thought 'xml.etree' was bundled with python2.5. Do you have to select
> packages in stdlib for installation? (I guess it is quite possible,
> because in the past I had to import codecs...)

Heh... It's a not very interesting story, but I'd like to tell it.
In bzrlib/xml_serializer.py there is import code:

        import xml.etree as elementtree

But later in code indirectly used module ElementTree from package xml.etree.
And py2exe did not see this dependency and bundle xml/etree/__init__.py
but not xml/etree/ElementTree.py. But actually we need *both*.
So I need to specify the whole elementtree package for bundling with py2exe.

It's hard to say where the bug is and actually name this as bug or as
issue.
Probably better to fix this in first place (i.e. in xml_serializer.py)
but just before release I don't like to change bzrlib if I could
workaround at the setup.py level.

> 
> Either way, +1 (cond) from me, but you need to clear it with Wouter.

Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFr5opzYr338mxwCURAhUMAKCUkKbUjJjfXnSxdeQ13RkjisHCxQCfd/L7
GFTMAfggMv8REjcAtLbNXQc=
=/hxG
-----END PGP SIGNATURE-----




More information about the bazaar mailing list