Building an RPM

Mark Lim mark_lim at symantec.com
Thu Apr 17 19:27:12 EDT 2008


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" <garionphx at gmail.com> 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
> 
> 
> 




More information about the Python-list mailing list