From 1bb3d726c2627eaf028f82d2d1bd41e676b8c90f Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 12 Aug 2010 14:36:25 -0400 Subject: fix setup.py to handle directories in doc This was causing failure in debian packaging. --- setup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 94bf5e4b..37f6cdd7 100755 --- a/setup.py +++ b/setup.py @@ -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/*'))), ], ) -- cgit v1.2.3