bdist-maemo Wiki
bdist_maemo distutils for creating .deb files for Nokia Maemo
Brought to you by:
clach04
Handle data files in a sensible way, make use of the logic in http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb?pli=1 and http://arthurkoziel.com/2008/12/31/including-additional-files-distutils-python-23/ possibly with the option of defaulting the directory name in site-packages to the package name
from distutils.core import setup from distutils.command.install import INSTALL_SCHEMES for scheme in INSTALL_SCHEMES.values(): scheme['data'] = scheme['purelib'] setup(name='foobar', version='1.0', data_files=[('foobar/docs', ['README']),], )