summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2010-08-12 14:36:25 -0400
committerScott Moser <smoser@ubuntu.com>2010-08-12 14:36:25 -0400
commit1bb3d726c2627eaf028f82d2d1bd41e676b8c90f (patch)
tree8d7739afadfa4802820299ba68915414f32e99f5 /setup.py
parent6ddbae50ca80770eaf47d8ad1df39ee4ffcd89c3 (diff)
downloadvyos-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-xsetup.py8
1 files changed, 6 insertions, 2 deletions
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/*'))),
],
)