Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web.
|
2005-10-28 Inside building RPMs with Python distutilsFor reasons outlined in CPANProblem, I don't install
Python packages using their setup tools; I build them into RPMs and
install the RPMs. Python's distutils (the setup system used by most
Python packages) have a command to do this, called
My experience is that the simpler the package and the package's
Because of step #1, Distutils has three ways of figuring out what to put in the step #1 source tarball, documented in more detail in the creating a source distribution section of the Distributing Python Modules documentation. They are, in order of preference:
If this step is omitting files you want, the big hammer is to just
write a The RPM specfile created in step #2 automatically picks up and
packages everything that a normal installation of the package
creates. At most, you may find that it's omitting extra documentation
or examples or the like that you want packaged up. (It's supposed to
automatically package up Steps #3 and #4 assume a standard RPM subdirectory
layout. Unfortunately this explodes if you have used a
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |