Fetching contributors…
Cannot retrieve contributors at this time
45 lines (38 sloc) 1.57 KB
#!/usr/bin/env python
from distutils.core import setup
import os
version = '0.01'
def find_package_files(workingdir, subdir):
currentDir = os.getcwd()
# Go into the working directory
# Get the list of all files in the sub directory
packageFiles = []
for root, dirs, files in os.walk(subdir):
fileList = []
if files:
for filename in files:
if not filename.endswith('.py'):
fileList.append(os.path.join(root, filename))
if fileList:
# Return back to the original directory
return packageFiles
# List all of the files under 'templates' since they are needed.
template_files = find_package_files('houseagent', 'templates')
data = dict(
name = 'HouseAgent',
version = version,
url = '',
download_url = '',
description = 'HouseAgent is a multi platform, open source home automation application.',
author = 'Maarten Damen',
author_email = 'm.damen [at]',
packages = ['houseagent','houseagent.core', 'houseagent.plugins', 'houseagent.utils', 'houseagent.pages'],
package_data = {'houseagent': template_files},
scripts = [''],
data_files = [('/etc/HouseAgent', ['HouseAgent.conf', 'specs/amqp0-8.xml']),
('share/HouseAgent', ['houseagent.db'])],