[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Doubt about developing plugins for python applications



On Mon, Apr 30, 2012 at 8:25 PM, Piotr Ożarowski <piotr@debian.org> wrote:

What hack? Do not change anything in plugins or in the startup script.
Systems with public programlib already work and on those with private
dir, external plugins will have to be installed with
PYTHONPATH=/usr/share/program/ and --install-lib=/usr/share/program/ (in
debian/rules or in RPM spec file).

Thanks Piotr... this seems to work fine.
 

As upstream, you can make it easier for distro developers by stripping
'import programlib' from setup.py (so that they will not need to install
the program package and set apropriate PYTHONPATH)

Actually it is not imported directly in the setup.py, but the setup.py complains when compiling the plugin modules, which depend on the programlib... the PYTHONPATH however works fine. Just for those willing to compile from the source on their own, I need to leave documented this dependency.

Thanks!

Reply to: