if os.path.isfile('/etc/redhat-release') and platform.system() == 'Linux':
    copydir('redhat', 'modname')
elif platform.system() == 'Windows':
    copydir('windows', 'modname')
else:
    copydir('debian', 'modname')
How do you install a file to site-packages (not package sub-folder) from setuptools?