1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/usr/bin/env python
from distutils.core import setup
import os
#create a list of module files, since python can't install directories all
#at once.
built_data_files = []
for dirpath, dirnames, filenames in os.walk('modules'):
# Ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
if dirname.startswith('.'): del dirnames[i]
built_data_files.append([os.path.join('/usr/share/ventoo/', dirpath), [os.path.join(dirpath, f) for f in filenames]])
#install the executable
built_data_files.append(['/usr/bin', ['ventoo']])
#update module search paths for install location
f = open("src/ventoo/search_paths.py", 'a')
f.write("\nmodules = ['/usr/share/ventoo/modules']\n")
f.close()
setup(name='Ventoo',
version='0.5',
description='Visual Config file Editor',
author='Christopher Harvey',
author_email='chris@basementcode.com',
url='http://www.google.ca/search?q=ventoo',
packages=['ventoo'],
package_dir={'ventoo' : 'src/ventoo'},
data_files=built_data_files
)
|