6
if os.environ.get('USE_SETUPTOOLS'):
7
from setuptools import setup
8
setup_kwargs = dict(zip_safe=0)
11
from distutils.core import setup
17
for subdir in ('whisper', 'rrd', 'log', 'log/webapp'):
18
storage_dirs.append( ('storage/%s' % subdir, []) )
22
for root, dirs, files in os.walk('webapp/content'):
23
for filename in files:
24
filepath = os.path.join(root, filename)
26
if root not in webapp_content:
27
webapp_content[root] = []
29
webapp_content[root].append(filepath)
32
conf_files = [ ('conf', glob('conf/*.example')) ]
33
examples = [ ('examples', glob('examples/example-*')) ]
38
url='https://launchpad.net/graphite',
40
author_email='chrismd@gmail.com',
41
license='Apache Software License 2.0',
42
description='Enterprise scalable realtime graphing',
43
package_dir={'' : 'webapp'},
57
'graphite.thirdparty',
58
'graphite.thirdparty.pytz',
60
package_data={'graphite' :
61
['templates/*', 'local_settings.py.example']},
62
scripts=glob('bin/*'),
63
data_files=webapp_content.items() + storage_dirs + conf_files + examples,