Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

.. -*- mode: rst ; ispell-local-dictionary: "american" -*-


A RPM filetrigger script for compiling Python files

:Author:  Hartmut Goebel <>
:Version: 20111116
:Copyright: GNU Public License v3 (GPLv3)

Some Linux distributions do not deliver compiled Python files
(byte-code, `.pyc`, `.pyo`) in their RPM packages. This script can be
used as a filetrigger to compile the Python modules on installation
and remove them on uninstallation of the respective package.

Install this package if you want for Python modules precompiled.

Please note: You will not find the byte-code files listed by RPM,
since they are not added to the database.


Install as follows::

  install -m 0644 python-compile.filter $TRIGGERDIR/
  install -m 0755 python-compile.script $TRIGGERDIR/


To test the script prior to installation, proceed as follows::

   rm -rf /tmp/py-filetrigger-test-root

Please note: The path for the test directory is currently hard-coded
into the script.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.