1. Add a comment that the upstart dir should probably be put elsewhere sometime (in a distro specific build?)

since not all distros fully support upstart that is in config here or even have upstart in general at all (for various reasons)
2. Found out that we really do need to specify these 2 packages due to the following
   a. The cloudinit root needs to be a package (pretty obvious)
   b. Not so obvious is the cloudinit.conf also needs to be a package so that its modules can be directly imported without 
      referring to the module name.
This commit is contained in:
Joshua Harlow 2012-06-20 16:34:09 -07:00
parent e8a1908cdb
commit 6a1e0d2426

View File

@ -26,7 +26,6 @@ import os
import re
from distutils.core import setup
from setuptools import find_packages
def is_f(p):
@ -69,13 +68,17 @@ setup(name='cloud-init',
author='Scott Moser',
author_email='scott.moser@canonical.com',
url='http://launchpad.net/cloud-init/',
packages=find_packages(),
# This second package referencing cloudinit.conf.*
# makes the config modules accessible to the whole
# import system...
packages=['cloudinit', 'cloudinit.conf'],
scripts=['bin/cloud-init',
'tools/cloud-init-per',
],
data_files=[('/etc/cloud', glob('config/*.cfg')),
('/etc/cloud/cloud.cfg.d', glob('config/cloud.cfg.d/*')),
('/etc/cloud/templates', glob('templates/*')),
# Only really need for upstart based systems
('/etc/init', glob('upstart/*.conf')),
('/usr/share/cloud-init', []),
('/usr/lib/cloud-init',