[Distutils] Python extenstion pyo instead of pyc

Leon Widdershoven l.widdershoven@fz-juelich.de
Mon Jul 15 07:46:02 2002


Hi,

I have a problem installing modules using setup.py bdist_rpm due
to the fact that I have PYTHONOPTIMIZE=3D2 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=20
during the build.

The distutils I use are revision v. 1.53 (taken from dist.py).

Best regards,
Leon Widdershoven