I have a problem installing modules using setup.py bdist_rpm due to the fact that I have PYTHONOPTIMIZE=2 defined in my profile.
This causes the build to fail as rpm expects a .pyc file, not a pyo file.
This can be easily solved in an automatic way, just create the expected extension based on the PYTHONOPTIMIZE variable, or unset this variable during the build.
The distutils I use are revision v. 1.53 (taken from dist.py).
Best regards, Leon Widdershoven