diff options
author | Scott Moser <smoser@ubuntu.com> | 2010-08-12 14:36:25 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2010-08-12 14:36:25 -0400 |
commit | 1bb3d726c2627eaf028f82d2d1bd41e676b8c90f (patch) | |
tree | 8d7739afadfa4802820299ba68915414f32e99f5 /setup.py | |
parent | 6ddbae50ca80770eaf47d8ad1df39ee4ffcd89c3 (diff) | |
download | vyos-cloud-init-1bb3d726c2627eaf028f82d2d1bd41e676b8c90f.tar.gz vyos-cloud-init-1bb3d726c2627eaf028f82d2d1bd41e676b8c90f.zip |
fix setup.py to handle directories in doc
This was causing failure in debian packaging.
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -23,6 +23,9 @@ from glob import glob import os.path import subprocess +def is_f(p): + return(os.path.isfile(p)) + setup(name='cloud-init', version='0.5.14', description='EC2 initialisation magic', @@ -40,7 +43,8 @@ setup(name='cloud-init', ('/usr/share/cloud-init', []), ('/usr/lib/cloud-init', ['tools/uncloud-init','tools/write-mime-multipart']), - ('/usr/share/doc/cloud-init', glob('doc/*.txt')), - ('/usr/share/doc/cloud-init/examples', glob('doc/examples/*')), + ('/usr/share/doc/cloud-init', filter(is_f,glob('doc/*'))), + ('/usr/share/doc/cloud-init/examples', filter(is_f,glob('doc/examples/*'))), + ('/usr/share/doc/cloud-init/examples/seed', filter(is_f,glob('doc/examples/seed/*'))), ], ) |