Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 435558 | Differences between
and this patch

Collapse All | Expand All

(-)setup.py (-21 lines)
Lines 11-34 Link Here
11
  from distutils.core import setup
11
  from distutils.core import setup
12
  setup_kwargs = dict()
12
  setup_kwargs = dict()
13
13
14
15
storage_dirs = []
16
17
for subdir in ('whisper', 'rrd', 'log', 'log/webapp'):
18
  storage_dirs.append( ('storage/%s' % subdir, []) )
19
20
webapp_content = {}
21
22
for root, dirs, files in os.walk('webapp/content'):
23
  for filename in files:
24
    filepath = os.path.join(root, filename)
25
26
    if root not in webapp_content:
27
      webapp_content[root] = []
28
29
    webapp_content[root].append(filepath)
30
31
32
conf_files = [ ('conf', glob('conf/*.example')) ]
14
conf_files = [ ('conf', glob('conf/*.example')) ]
33
examples = [ ('examples', glob('examples/example-*')) ]
15
examples = [ ('examples', glob('examples/example-*')) ]
34
16
Lines 57-65 Link Here
57
    'graphite.thirdparty',
39
    'graphite.thirdparty',
58
    'graphite.thirdparty.pytz',
40
    'graphite.thirdparty.pytz',
59
  ],
41
  ],
60
  package_data={'graphite' :
61
    ['templates/*', 'local_settings.py.example']},
62
  scripts=glob('bin/*'),
42
  scripts=glob('bin/*'),
63
  data_files=webapp_content.items() + storage_dirs + conf_files + examples,
64
  **setup_kwargs
43
  **setup_kwargs
65
)
44
)

Return to bug 435558