You could use the module compileall to create .pyc and .pyo

(http://www.python.org/doc/1.5.1p1/tut/node43.html)

and do this in your %build stage.

Or if you don't need to ship them, strike them from the package as they will
be generated as necessary.

On 4/17/08 2:19 PM, "John Sutherland" <[EMAIL PROTECTED]> wrote:

> Hi everyone..
> 
> I'm attempting to build an RPM for Python 2.5.2, using the spec file
> found in the standard tarball (Misc/RPM)..
> 
> Currently, its failing cause it hasn't 'compiled' the tools .pyc
> and .pyo's, saying the files aren't found.
> 
> Anyone have any ideas? (running on CentOS 4.3)
> 
> --John
> 
> 
> 

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to