Packaging a twistd plugin and python-support issues
Andreas Hasenack
andreas at canonical.com
Wed Aug 31 12:39:27 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm packaging a twisted plugin (https://launchpad.net/txstatsd) for
Lucid (so no dh_python2 for me) and ran into an issue with
python-support that I would like some advice about.
If I don't create a ".noinit" file in the twisted plugin directory,
python-support will create an empty __init__.py file in there in
postinst. When that happens, twistd no longer sees the plugin.
I can't package a ".noinit" file with every plugin package, as they will
conflict.
I see a few alternatives, and would like some advice:
a) Check for the ".noinit" file presence in postinst, and create if
necessary, before the python-support "update-python-modules" is called.
Also make sure there is no __init__.py file in there, deleting it if needed.
b) Use python-central. I tried it and it works right out of the box. But
this is deprecated, right? Well, so is python-support, but -central is
"more" deprecated I think ;)
c) anything else?
Thanks!
- --
Andreas Hasenack
andreas at canonical.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk5eK3wACgkQeEJZs/PdwpBDFgCg9wr/9js/Ye1ZTM67RsIRf5jz
D4EAni9M30uneeerqI+/PhPxzGb4MHra
=Odav
-----END PGP SIGNATURE-----
More information about the ubuntu-devel
mailing list