How to install Python modules needed by plugins?

Alexander Belchenko bialix at ukr.net
Sat Mar 26 12:57:00 UTC 2011


Eli Zaretskii пишет:
>> Date: Wed, 09 Mar 2011 11:21:13 +0200
>> From: Alexander Belchenko <bialix at ukr.net>
>> Cc: bazaar at lists.canonical.com
>>
>> John Arbash Meinel пишет:
>>>> After almost 5 years of standalone installer went to the wild I'm still
>>>> not sure what's the best.
>>> I think tweaking the standalone installer to include another path in the
>>> default sys.path would be reasonable.
>>>
>>> Something like:
>>>
>>> C:\Program Files\Bazaar\site-packages
>>>
>>> I don't know if it can easily be done as part of bzr-windows-installers.
>>> But certainly we could put in 'bzr':
>>>
>>>  if sys.frozen and sys.platform == 'windows':
>>>    sys.path.append(os.path.join(os.path.dirname(sys.executable),
>>>                                 'site-packages'))
>>>
>>> What do you think?
>>
>> That will work though the if clause actually should be
>>
>>    if getattr(sys, 'frozen', None) is not None and sys.platform == 'windows':
>>      sys.path.append(os.path.join(os.path.dirname(sys.executable),
>>                                   'site-packages'))
>>
>> and perhaps constructing the path require some changes too, I don't 
>> remember off-hand.
>>
>> But that way should work, yep.
> 
> So what would it take to have this included in a future bzr release?
> Should I file a bug report, or do something else?  Or was this already
> added to the development sources?

Bug report won't hurt.



More information about the bazaar mailing list