On 4/24/07, "Nathan R. Yergler" <nathan at yergler.net> wrote:
>On 4/24/07, Stanley A. Klein <sklein at cpcug.org> wrote:
>> I need to create a customized Fedora live CD with Python applications on
>> it.  The live CD requires rpm's of the applications.  (The issues are
>> similar to a customized Ubuntu live CD but Ubuntu requires deb's.)
>>
>> It seems that the distutils/setup.py functions that create rpms are
>> broken.  I get errors most of the time that I try to use them.  The
>Python
>> community seems to be focused on eggs, that are useful if individually
>> installed but don't match the distribution formats of the Linux distros.
>> Those distribution formats are what the distros use for their live CD's.

>I've successfully created RPMs many times in the past; can you
>elaborate on the problems you're having?

>>
>> Is there a way to convert eggs to rpm's?  Can the distutils be fixed to
>> reliably create rpm's?  Is there some other way to install eggs on distro
>> customized live CD's?

>If it's a live CD, is there a reason you can't just put them into
>site-packages on the CD filesystem? (I have no idea what goes into
>building a Fedora live CD, so "yes, there's a reason" is a sufficient
>answer).

Below is a typical example of the problem I encounter.  I tried to build
an RPM of ZSI-2.0 using "python setup.py bdist_rpm", and got the output
below at the end.  Most of the time I have the same problem trying to
create RPM's from python tar.gz files.

The reason you can't just put the files into site-packages on the CD file
system (AFAIK for either Fedora or a Debian derivative such as Ubuntu) is
that the live CD builds its system from packages in the distro format.  To
get files into site-packages as part of the live CD, they have to be
loaded there from an RPM or deb format package.  I don't know of any way
the live CD's can be set up to handle eggs.  Also, the live CD's are now
being made installable, so if the user wants to do so, installing from the
live CD is an option.  The installers expect distro formatted packages.


Stan Klein


----------------------------------------------------------------------
error: Installed (but unpackaged) file(s) found:
   /usr/lib/python2.4/site-packages/ZSI/ServiceContainer.pyo
   /usr/lib/python2.4/site-packages/ZSI/ServiceProxy.pyo
   /usr/lib/python2.4/site-packages/ZSI/TC.pyo
   /usr/lib/python2.4/site-packages/ZSI/TCapache.pyo
   /usr/lib/python2.4/site-packages/ZSI/TCcompound.pyo
   /usr/lib/python2.4/site-packages/ZSI/TCnumbers.pyo
   /usr/lib/python2.4/site-packages/ZSI/TCtimes.pyo
   /usr/lib/python2.4/site-packages/ZSI/__init__.pyo
   /usr/lib/python2.4/site-packages/ZSI/address.pyo
   /usr/lib/python2.4/site-packages/ZSI/auth.pyo
   /usr/lib/python2.4/site-packages/ZSI/client.pyo
   /usr/lib/python2.4/site-packages/ZSI/digest_auth.pyo
   /usr/lib/python2.4/site-packages/ZSI/dispatch.pyo
   /usr/lib/python2.4/site-packages/ZSI/fault.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/__init__.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/commands.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/containers.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/pyclass.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/utility.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/wsdl2dispatch.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/wsdl2python.pyo
   /usr/lib/python2.4/site-packages/ZSI/parse.pyo
   /usr/lib/python2.4/site-packages/ZSI/resolvers.pyo
   /usr/lib/python2.4/site-packages/ZSI/schema.pyo
   /usr/lib/python2.4/site-packages/ZSI/twisted/WSresource.pyo
   /usr/lib/python2.4/site-packages/ZSI/twisted/WSsecurity.pyo
   /usr/lib/python2.4/site-packages/ZSI/twisted/__init__.pyo
   /usr/lib/python2.4/site-packages/ZSI/twisted/client.pyo
   /usr/lib/python2.4/site-packages/ZSI/typeinterpreter.pyo
   /usr/lib/python2.4/site-packages/ZSI/version.pyo
   /usr/lib/python2.4/site-packages/ZSI/writer.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/Namespaces.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/TimeoutSocket.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/UserTuple.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/Utility.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/WSDLTools.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/XMLSchema.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/XMLname.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/__init__.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/c14n.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/logging.pyo


RPM build errors:
    File listed twice:
/usr/lib/python2.4/site-packages/ZSI-2.0-py2.4.egg-info/PKG-INFO
    File listed twice:
/usr/lib/python2.4/site-packages/ZSI-2.0-py2.4.egg-info/SOURCES.txt
    File listed twice:
/usr/lib/python2.4/site-packages/ZSI-2.0-py2.4.egg-info/dependency_links.txt
    File listed twice:
/usr/lib/python2.4/site-packages/ZSI-2.0-py2.4.egg-info/entry_points.txt
    File listed twice:
/usr/lib/python2.4/site-packages/ZSI-2.0-py2.4.egg-info/requires.txt
    File listed twice:
/usr/lib/python2.4/site-packages/ZSI-2.0-py2.4.egg-info/top_level.txt
    Installed (but unpackaged) file(s) found:
   /usr/lib/python2.4/site-packages/ZSI/ServiceContainer.pyo
   /usr/lib/python2.4/site-packages/ZSI/ServiceProxy.pyo
   /usr/lib/python2.4/site-packages/ZSI/TC.pyo
   /usr/lib/python2.4/site-packages/ZSI/TCapache.pyo
   /usr/lib/python2.4/site-packages/ZSI/TCcompound.pyo
   /usr/lib/python2.4/site-packages/ZSI/TCnumbers.pyo
   /usr/lib/python2.4/site-packages/ZSI/TCtimes.pyo
   /usr/lib/python2.4/site-packages/ZSI/__init__.pyo
   /usr/lib/python2.4/site-packages/ZSI/address.pyo
   /usr/lib/python2.4/site-packages/ZSI/auth.pyo
   /usr/lib/python2.4/site-packages/ZSI/client.pyo
   /usr/lib/python2.4/site-packages/ZSI/digest_auth.pyo
   /usr/lib/python2.4/site-packages/ZSI/dispatch.pyo
   /usr/lib/python2.4/site-packages/ZSI/fault.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/__init__.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/commands.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/containers.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/pyclass.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/utility.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/wsdl2dispatch.pyo
   /usr/lib/python2.4/site-packages/ZSI/generate/wsdl2python.pyo
   /usr/lib/python2.4/site-packages/ZSI/parse.pyo
   /usr/lib/python2.4/site-packages/ZSI/resolvers.pyo
   /usr/lib/python2.4/site-packages/ZSI/schema.pyo
   /usr/lib/python2.4/site-packages/ZSI/twisted/WSresource.pyo
   /usr/lib/python2.4/site-packages/ZSI/twisted/WSsecurity.pyo
   /usr/lib/python2.4/site-packages/ZSI/twisted/__init__.pyo
   /usr/lib/python2.4/site-packages/ZSI/twisted/client.pyo
   /usr/lib/python2.4/site-packages/ZSI/typeinterpreter.pyo
   /usr/lib/python2.4/site-packages/ZSI/version.pyo
   /usr/lib/python2.4/site-packages/ZSI/writer.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/Namespaces.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/TimeoutSocket.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/UserTuple.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/Utility.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/WSDLTools.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/XMLSchema.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/XMLname.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/__init__.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/c14n.pyo
   /usr/lib/python2.4/site-packages/ZSI/wstools/logging.pyo
error: command 'rpmbuild' failed with exit status 1



_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to