[Distutils] setuptools and man pages

Andrew McNabb amcnabb at mcnabbs.org
Tue Jan 25 20:03:13 CET 2011

I am maintaining a package that includes several scripts, and I recently
added a man page.  Unfortunately, I was unable to figure out how to
specify the man page with setuptools.  I ended up switching back to
vanilla distutils, which allowed me to specify the man page in setup.py:

    data_files=[('man/man1', ['man/man1/pssh.1'])]

Is there an equivalent way to do this with setuptools?  The closest
thing I could find in the setuptools documentation was, "Note, by the
way, that this encapsulation of data files means that you can't actually
install data files to some arbitrary location on a user's machine; this
is a feature, not a bug."  I appreciate the well-intended thought, but I
can't find any feature for specifying man pages.  I don't want to
install to an arbitrary location, but I need to be able to install to

Is there a way to do this with setuptools, or do I need to keep using
distutils?  I would love to be able to use the "console_scripts"
feature, so it would be great if I could use setuptools, but obviously
the man pages are higher priority.  I feel like I must be missing
something obvious.  Thanks.

Andrew McNabb
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868

More information about the Distutils-SIG mailing list