Idioms for Modules

Russel Winder russel.winder at concertant.com
Tue Aug 25 22:09:33 BST 2009


John,

On Tue, 2009-08-25 at 11:45 -0500, John Arbash Meinel wrote:
[ . . . ]
> What do you consider a module versus a package? You mean 'foo.py' versus
> 'foo/__init__.py' ?

Indeed.

> As bzr versions a 'tree' and not individual files, I don't know that
> there is a great answer.

But there is an answer . . .   :-)

> Technically, bzr plugins can also be modules. It is just rarely ever
> used because packages are more flexible, and integrate better with bzr
> as a VCS.
> 
> (consider that at a minimum bzr needs a place to put its information
> about the file, you can't really do that with a module, since it is
> limited to a single file...)
> 
> So in general, no, there isn't an easy way to use bzr to version
> single-file modules.

I was rapidly coming to that conclusion.  I think I always knew this was
the case, but I thought I would ask anyway.  It is good to have
confirmation of the conclusion I had come to.

> I suppose you could version them somewhere, and then symlink the single
> module into the right location.

That is exactly what I have ended up doing but it is really, really,
really annoying.

I will raise a bug report with the tool in question, and see if I can do
a small patch to allow packages as well as modules.  
-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel at russel.org.uk
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder at ekiga.net
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090825/42a56917/attachment.pgp 


More information about the bazaar mailing list