aboutsummaryrefslogtreecommitdiff
blob: 1d665e6bb55b1d5c44069d08b70021f9b8895899 (plain)
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
#!/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]])

#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
     )