[merge] look for plugins in arch-independent site directory (was Re: Bundling more plugins into bzrtools)
Toshio Kuratomi
a.badger at gmail.com
Fri Feb 15 06:08:39 GMT 2008
Martin Pool wrote:
>> > But
>> > better would be a fairly trivial patch to bzrlib.plugin to
>> > add /usr/lib/pythonX.Y/site-packages/bzrlib/plugins to the default
>> > path.
>> >
>>
>>
>> Excellent! Patch against 1.2rc1 and tested with bzr-1.1 attached.
>
> bb:tweak
>
> Please be consistent with the rest of that file and don't use
> camelCaps variables.
>
Done. Patch attached.
> Will distutils always be available? istr that it was previously only
> available in the python-dev package. But on Hardy it is in python2.4
> and 2.5.
>
> Actually maybe it was just that setup.py often wanted to read
> something from python-dev. Either way, we should check this is true
> on other OSs, or guard the import statement.
I can tell you that it is part of the main python package in Fedora. I
can also tell you that on Fedora using setup.py without python-devel
doesn't work because python uses a Makefile as a source of data for the
install command. (Test that by running: python
/usr/lib/python2.5/distutils/tests/test_install.py )
But that problem doesn't interfere with
distutils.sysconfig.get_python_lib() so I don't know if there's a
different problem in Ubuntu/Debian or if you're thinking that this
problem has a wider scope than it does.
-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-arch-indep-plugins.patch
Type: text/x-patch
Size: 852 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080214/e0422c24/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080214/e0422c24/attachment.pgp
More information about the bazaar
mailing list