Home Download Buy Blog Forum Support

Python Dependencies

Python Dependencies

Postby d0ugal on Fri Jun 15, 2012 9:31 am

I've been working on a simple plugin to preview reStructuredText files as HTML. It generally works quite well, however it requires the python package docutils. I originally attempted to bundle docutils in the plugin source, by just copying it over, however this lead to strange import errors and eventually gave up. So at the moment users are expected to set it up themselves, this is almost fine but depending on the setup and familiarity with Python its fairly complex.

Are there any best practices for requiring external packages?

Thanks!

( For the curious, more details can be read about this here in a github issue where I outlines the problem: https://github.com/d0ugal/RstPreview/issues/7 )
d0ugal
 
Posts: 2
Joined: Fri Jun 15, 2012 9:25 am

Re: Python Dependencies

Postby FichteFoll on Sun Jul 01, 2012 12:33 pm

I think this is a related discussion. It's about how external packages/modules should be handled, used by different plugins and probably in different versions.
FichteFoll
 
Posts: 406
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany

Re: Python Dependencies

Postby d0ugal on Wed Oct 03, 2012 1:28 pm

Thanks - that is quite an interesting discussion. Unfortunately it doesn't help. The problem I seem to have is that docutils doesn't like being bundled in the plugin, I suspect because its not a pure Python lib.
d0ugal
 
Posts: 2
Joined: Fri Jun 15, 2012 9:25 am


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 8 guests