[merge] setup.py should find the packages automatically

Alexander Belchenko bialix at ukr.net
Fri Aug 18 06:58:23 BST 2006


John Arbash Meinel пишет:
> Of course, I should send the diff if I say I'm going to. :)
> 
> ------------------------------------------------------------------------
> 
> === modified file 'setup.py'
> --- setup.py	2006-08-16 14:56:07 +0000
> +++ setup.py	2006-08-17 13:53:14 +0000
> @@ -6,6 +6,9 @@
>   './setup.py --help' for more options
>  """
>  
> +import os
> +import sys
> +
>  import bzrlib
>  
>  ##
> @@ -20,39 +23,9 @@
>               'license':      'GNU GPL v2',
>              }
>  
> -BZRLIB = {'packages': ['bzrlib',
> -                       'bzrlib.benchmarks',
> -                       'bzrlib.benchmarks.tree_creator',
> -                       'bzrlib.bundle',
> -                       'bzrlib.bundle.serializer',
> -                       'bzrlib.doc',
> -                       'bzrlib.doc.api',
> -                       'bzrlib.export',
> -                       'bzrlib.plugins',
> -                       'bzrlib.plugins.launchpad',
> -                       'bzrlib.store',
> -                       'bzrlib.store.revision',
> -                       'bzrlib.store.versioned',
> -                       'bzrlib.tests',
> -                       'bzrlib.tests.blackbox',
> -                       'bzrlib.tests.branch_implementations',
> -                       'bzrlib.tests.bzrdir_implementations',
> -                       'bzrlib.tests.interrepository_implementations',
> -                       'bzrlib.tests.intertree_implementations',
> -                       'bzrlib.tests.interversionedfile_implementations',
> -                       'bzrlib.tests.repository_implementations',
> -                       'bzrlib.tests.revisionstore_implementations',
> -                       'bzrlib.tests.tree_implementations',
> -                       'bzrlib.tests.workingtree_implementations',
> -                       'bzrlib.transport',
> -                       'bzrlib.transport.http',
> -                       'bzrlib.ui',
> -                       'bzrlib.util',
> -                       'bzrlib.util.configobj',
> -                       'bzrlib.util.effbot.org',
> -                       'bzrlib.util.elementtree',
> -                      ],
> -         }
> +# The list of packages is automatically generated later. Add other things
> +# that are part of BZRLIB here.
> +BZRLIB = {}
...
> +
> +BZRLIB['packages'] = get_bzrlib_packages()
> +


+1





More information about the bazaar mailing list