[RFC] move tools to bzrlib.tools
Robert Collins
robertc at robertcollins.net
Wed Apr 18 06:08:04 BST 2007
On Wed, 2007-04-18 at 07:50 +0300, Alexander Belchenko wrote:
>
> 'tools' is package because 'generate_docs.py' holds its modules in it.
> Also it contains several scripts and helpers for creating docs and
> installers.
> I think it should not be installed as part of bzrlib.
Being installed is orthogonal to my desire here. We can have
'bzrlib.tools' in the source tree and not install it very easily.
> Also, Python 2.5 no more require presence of __init__.py to treat
> directory
> as python package, so you need to consider 'contrib' as well.
Huh?
:!python
Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import contrib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named contrib
>>> import contrib.create_bzr_rollup
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named contrib.create_bzr_rollup
>>>from contrib import create_bzr_rollup
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named contrib
shell returned 1
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070418/702d26fb/attachment.pgp
More information about the bazaar
mailing list