<commit_before>#!/usr/bin/env python

import os
from glob import glob
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup


storage_dirs = [ ('storage/whisper',[]), ('storage/lists',[]),
                 ('storage/log',[]), ('storage/rrd',[]) ]
conf_files = [ ('conf', glob('conf/*')) ]

setup(
  name='carbon',
  version='0.9.5',
  url='https://launchpad.net/graphite',
  author='<NAME>',
  author_email='<EMAIL>',
  license='Apache Software License 2.0',
  description='Backend data caching and persistence daemon for Graphite',
  package_dir={'' : 'lib'},
  packages=['carbon'],
  scripts=glob('bin/*'),
  data_files=storage_dirs + conf_files,
  install_requires=['twisted', 'txamqp'],
  zip_safe=0,
)<commit_msg>switched back from setuptools to distutils as default installer because of various problems, setuptools still availble via USE_SETUPTOOLS env variable<commit_after>#!/usr/bin/env python

import os
from glob import glob

if os.environ.get('USE_SETUPTOOLS'):
  from setuptools import setup
else:
  from distutils.core import setup


storage_dirs = [ ('storage/whisper',[]), ('storage/lists',[]),
                 ('storage/log',[]), ('storage/rrd',[]) ]
conf_files = [ ('conf', glob('conf/*')) ]

setup(
  name='carbon',
  version='0.9.5',
  url='https://launchpad.net/graphite',
  author='<NAME>',
  author_email='<EMAIL>',
  license='Apache Software License 2.0',
  description='Backend data caching and persistence daemon for Graphite',
  package_dir={'' : 'lib'},
  packages=['carbon'],
  scripts=glob('bin/*'),
  data_files=storage_dirs + conf_files,
  install_requires=['twisted', 'txamqp'],
  zip_safe=0,
)
{'fraction_non_alphanumeric': 0.17425149700598802, 'fraction_numerical': 0.00718562874251497, 'mean_word_length': 4.822299651567945, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4748356', 'n_tokens_mistral': 568, 'n_tokens_neox': 553, 'n_words': 127}