another distutils question
Robert Kern
robert.kern at gmail.com
Fri Sep 29 16:01:45 EDT 2006
Eric S. Johansson wrote:
> Now I get to puzzle out how to install the CGI plus images plus
> stylesheets plus plus plus mess. Probably a bit outside of the scope of
> distutils even if the CGI programs are Python. ;-)
I recommend installing the data inside the package itself. In 2.4, use the
package_data keyword in setup().
http://docs.python.org/dist/node12.html
For 2.3, I recommend using setuptools which packports this feature. Actually, I
recommend setuptools regardless as it provides a utility for locating the
package data from inside your code.
http://peak.telecommunity.com/DevCenter/setuptools
http://peak.telecommunity.com/DevCenter/PkgResources
2.2 is tricky, but there are ways. Let me know if you need them.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list