pycassa/pycassa — pull request #127 by caruccio (2012-03-07 23:14:26+00:00)
Title: RPM Install script to build under CentOS

...l-script rpm-install-script.sh

This is a simplified RPM install script to include .pyo files generated by bdist_rpm under CentOS 5.x.
AFAIK, there is no way to avoid rpmbuild to run /usr/lib/rpm/brp-python-bytecompile and create these files.
What it does is simply include it into INSTALLED_FILES (RPM spec's %files section).

To use it, type:

$ python setup.py bdist_rpm --install-script rpm-install-script.sh