Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is actually going on when synaptic informs me of "Processing triggers for python-support" ?

share|improve this question
up vote 3 down vote accepted

The python-support package byte-compiles Python modules in to .pyc files. Typically when you run the module as a user, you don't have write access to the directories where the byte-compiled versions are placed, so the system does it for you when the packages are installed. Essentially it runs the update-python-modules script.

share|improve this answer
Do I need to do something special in the DEBIAN control files e.g. postrm? – jldupont Oct 18 '09 at 13:48

Kamil Kisiel already answered for this case. In general, triggers are a feature of Debian and Debian-derived distributions that let packages defer some tasks that need to be performed during installation. This is useful for tasks that are shared among several packages, like in Python's case, compiling the Python modules.

As a specific example of where triggers save time, some documentation systems (like man or info) generate an index for all such documents installed, so when you install or update a package, its installation script will update this index. But if you are installing several such packages, in the days before triggers, all of the packages would individually update the index even though it needs to be done only once, so the installation would take longer. But now these packages can contain the index update as a trigger action, so that it is only performed once per installation.

share|improve this answer
@jk: thanks! Too bad I can only accept one answer. – jldupont Oct 18 '09 at 13:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.