Ronald Oussoren wrote:
> [snip..]
>
>>
>>  
>>
>>     How could we ease the process of installing an idle extension ?
>>     I see no problem to just make the extension a package and put it
>>     in the
>>     python path (site-packages).
>>     Then we would need to change idlelib.configHandler.IdleConf to accept
>>     the package path besides the idleDir and userDir config options.
>>     This lets us eggify an extension and use ez_install for download and
>>     installation.
>>
>>  
>> This is a very good idea! A few points which need to be resolved first:
>>
>>    1. Even if we could get idleConf to work like this, we would still
>>       need a way for IDLE to know about extensions. Currently
>>       extensions are "registered" by them adding an entry in
>>       config-extensions. How would we do this otherwise?
>>
>
> Setuptools entry-points are one option for this. Another option is 
> installing all plugins in a special magic pacage and load all modules 
> in that package.
That's the approach we use for Firedrop.  There is still a config file 
to edit to enable extensions. You might not want all available 
extensions available by default unless you are going to provide a GUI 
for enabling / disabling. (Requiring a restart after changing these 
options would be fine I guess.)

Fuzzyman
http://www.voidspace.org.uk/python/articles.shtml

>>   1.
>>
>>
>>    2. Currently user config is in a single config-extensions file.
>>       How would we manage user configuration with each extension
>>       being a separate module?
>>
>> Regarding #2, I think we could still have user config in a single 
>> config-extensions file, where config for all extensions is stored
>>
>> _______________________________________________
>> IDLE-dev mailing list
>> [email protected] <mailto:[email protected]>
>> http://mail.python.org/mailman/listinfo/idle-dev
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> IDLE-dev mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/idle-dev
>   

_______________________________________________
IDLE-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/idle-dev

Reply via email to