[Python-modules-team] Bug#620469: Bug#620469: Bug#620496

Piotr Ożarowski piotr at debian.org
Wed Jun 8 20:03:36 UTC 2011


[Clint Byrum, 2011-06-08]
> Excerpts from Piotr Ożarowski's message of Tue Apr 19 03:27:05 -0700 2011:
> > FYI: if this package doesn't use setuptools/distribute's
> > namespace_packages.txt, you can add "--namespace gearman" to
> > dh_python2's call and let the helper handle namespace issue
> 
> Hi Piotr.
> 
> If I understand the suggestion correctly, we can use something in
> distutils/setuptools to extend the path in this file, without actually
> having this file in either package?

you can add namespace_packages=['gearman'] to setup.py if it uses
setuptools/distribute (pure distutils is not enough) and that's all,
dh_python2 will do the rest (remove __init__.py file and recreate it at
install time). If you don't want to patch upstream files you can pass
the namespace name to dh_python2 directly via --namespace
(dh_python2 --namespace gearman).
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645





More information about the Python-modules-team mailing list