[Distutils] I need to create a customized Fedora live cd with Python applications on it
Phillip J. Eby
pje at telecommunity.com
Tue May 29 23:20:24 CEST 2007
At 04:20 PM 5/29/2007 -0400, Stanley A. Klein wrote:
>I used your workaround and got the rpms. However, I also got a traceback,
>attached below. I think this is another problem in setuptools, because
>(IIRC) I saw a posting relating to it.
I believe that was fixed in 0.6c5, if not, then in 0.6c6 (to be
released Real Soon Now).
>Alternatively, the Fedora distribution could put the lines into some kind
>of global config file and setuptools could have an option (perhaps
>--noFedora) to not use them.
Good point - if they add those lines to the
$prefix/lib/python2.x/distutils/distutils.cfg file, then all packages
will install with .pyo files by default, thereby fixing the problem.
This would be a fast fix for Fedora and ensure that all Python
packages built and installed there (via distutils, setuptools, or
bdist_rpm) will include .pyo files, unless specifically overridden.
(By the way, you can always add those lines to the root user's
$HOME/.pydistutils.cfg instead of editing individual setup.cfg
files. Then, any packages installed (or RPMs built) by the root user
will include .pyo files.)
More information about the Distutils-SIG