Unable to use pure-python plugins from /usr/share/ ... (FHS) location

Bug #145612 reported by Mateusz Korniak
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Vincent Ladeuil

Bug Description

Default install installs bzrlib under /usr/lib/pythonx.x
and pure-python plugins (bzrtools, bzr-gtk) under /usr/share/pythonx.x

which seems to be correct from FHS point of view but such installed plugins are unavailable.

Problem can be fixed by forcing /usr/lib/... path in plugins:

%{__python} setup.py install \
 --install-purelib /usr/lib/pythonx.x \
 --optimize=2 \

but would be much better to have /usr/share/ .. in paths where plugins are looked for.
It could be done during python setup.py phase ...

TIA

Related branches

Revision history for this message
Alexander Belchenko (bialix) wrote :

No, it's incorrect assumption about bzrlib plugins.
Look at env variable BZR_PLUGIN_PATH in docs.

Vincent Ladeuil (vila)
Changed in bzr:
status: New → Won't Fix
Revision history for this message
Vincent Ladeuil (vila) wrote :

See bug #412930 which fixes the issue by allowing:
  BZR_PLUGIN_PATH='+user:/usr/share/pythonx.x/bzrlib/plugins'
Which ensures that bzr can load the site plugins from several directories if needed.

Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
status: Won't Fix → Fix Committed
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.1
status: Fix Committed → Fix Released
Vincent Ladeuil (vila)
Changed in bzr:
milestone: 2.1.0 → 2.1b1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.