summaryrefslogtreecommitdiff
path: root/setup.py
blob: 86a1f22359e9779484da1f4f89cef929a847b54f (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
30
31
32
33
34
35
36
from distutils.core import setup

packages = [
        'CAO',
        ]

prefix = '/'
share_dir = 'usr/share/cao/'

data_files = list()

import os

for n in os.walk('usr'):
    if len(n[2]) == 0:
        continue

    files = list()
    for f in n[2]:
        files.append(n[0] + '/' + f)

    data_files.append((prefix + n[0] + '/', files))

print(data_files)

scripts = [
        'cao-server',
        ]

setup(
        name='cao',
        version='0.1',
        packages=packages,
        data_files=data_files,
        scripts=scripts,
        )