[MERGE] windows standalone installer creates and uses "plugins" directory for system-wide plugins (#129298)

Alexander Belchenko bialix at ukr.net
Fri Nov 23 17:43:33 GMT 2007


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

Kevin Light пишет:
> ----- "Alexander Belchenko" <bialix at ukr.net> wrote:
>> This patch in the same time bug fix (wishlist-fix actually)
>> and improvements. IMO this change is worth to include to 1.0.
>>
>> With this patch standalone bzr.exe will able to load plugins
>> from C:\Program Files\Bazaar\plugins. This directory will
>> be used therefore as location for system-wide plugins.
>> Currently there is no easy way to install plugins for standalone
>> bzr.exe for system-wide usage (beside using BZR_PLUGIN_PATH
>> environment variable): because all python modules (compiled
>> to pyc) stored inside one big library.zip. Now we have this
>> option.
> 
> Might I suggest C:\Program Files\Bazaar\lib\site-packages\bzrlib\plugins instead?  This would allow cross-platform plugin archives to be unpacked in the Bazaar home folder just as if they would be installed into the python home.

What do you mean by "cross-platform plugin archives"?
AFAIK, all plugins distributed as python package or python module.
Mostly as tar.gz archives. Some (like QBzr) provide nice windows installer.

I'm not aware about plugins that distributed as archive
with absolute path "\lib\site-packages\bzrlib\plugins\xxx".
It's unusual IMO.

If some plugin author provide the way to install it in python sense,
then it usually setup.py script that just copied plugin code
to python's Lib\site-packages\bzrlib\plugins\ folder.

But most of plugins just copied to ~/.bazaar/plugins directory
on Linux.

I don't see how your proposal will help.
Shorter directory name means that user can simply
copy plugin code to "plugins", even manually.

Because almost all free plugins listed on wiki,
it's [relatively] easy build plugins installer pack
for Windows with most of them inside.

No, I really don't think your proposal makes this support
better. IMO, it's just confuse some people. They may
wonder why "C:\Program Files\Bazaar\lib\site-packages\bzrlib"
is empty and where bzrlib sources actually.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHRxFFzYr338mxwCURAiDIAJsFTPwCsJZrPullFsnja4m8YFHQqgCdG7c4
7YM7MRtEDhFR584VPVy37Do=
=iRnl
-----END PGP SIGNATURE-----



More information about the bazaar mailing list