<commit_before>import platform
import sys
from config import *

try:
    from setuptools import setup, find_packages

    # required to build the cython extensions
    from distutils.extension import Extension

except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import setup, find_packages

# Extra arguments to pass to the setup function
extra_args = {}

# Prereqs of the build. Won't get installed when deploying the egg.
setup_requires = [
]

# Prereqs of the install. Will install when deploying the egg.
install_requires=[
]

if sys.platform == 'win32':
    from glob import glob
    import py2exe
    install_requires.extend([
        'tornado==2.1',
        'pywin32==217',
        'wmi==1.4.9',
        'simplejson==2.6.1',
        'mysql-python==1.2.3',
        'pymongo==2.3',
        'psycopg2==2.4.5',
        'python-memcached==1.48',
        'redis==2.6.2',
        'elementtree'
    ])

    class Target(object):
        def __init__(self, **kw):
            self.__dict__.update(kw) 
            self.version = get_version()
            self.company_name = 'Datadog, Inc.'
            self.copyright = 'Copyright 2012 Datadog, Inc.'
            self.cmdline_style = 'pywin32'

    agent_svc = Target(name='Datadog Agent', modules='win32.agent')

    extra_args = {
        'options': {
            'py2exe': {
                'includes': 'win32service,win32serviceutil,win32event,simplejson',
                'optimize': 2,
                'compressed': 1,
                'bundle_files': 1,
            },
        },
        'console': ['win32\shell.py'],
        'service': [agent_svc],
        'zipfile': None,
        'data_files': [("Microsoft.VC90.CRT", glob(r'C:\Python27\redist\*.*'))]
    }

setup(
    name='datadog-agent',
    version=get_version(),
    description="DevOps' best friend",
    author='DataDog',
    author_email='<EMAIL>',
    url='http://www.datadoghq.com',
    install_requires=install_requires,
    setup_requires=setup_requires,
    packages=find_packages(exclude=['ez_setup']),
    include_package_data=True,
    test_suite='nose.collector',
    zip_safe=False,<commit_msg>[win32] Bundle adodbapi library with exe<commit_after>import platform
import sys
from config import *

try:
    from setuptools import setup, find_packages

    # required to build the cython extensions
    from distutils.extension import Extension

except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import setup, find_packages

# Extra arguments to pass to the setup function
extra_args = {}

# Prereqs of the build. Won't get installed when deploying the egg.
setup_requires = [
]

# Prereqs of the install. Will install when deploying the egg.
install_requires=[
]

if sys.platform == 'win32':
    from glob import glob
    import py2exe
    install_requires.extend([
        'tornado==2.1',
        'pywin32==217',
        'wmi==1.4.9',
        'simplejson==2.6.1',
        'mysql-python==1.2.3',
        'pymongo==2.3',
        'psycopg2==2.4.5',
        'python-memcached==1.48',
        'redis==2.6.2',
        'adodbapi'
        'elementtree'
    ])

    class Target(object):
        def __init__(self, **kw):
            self.__dict__.update(kw) 
            self.version = get_version()
            self.company_name = 'Datadog, Inc.'
            self.copyright = 'Copyright 2012 Datadog, Inc.'
            self.cmdline_style = 'pywin32'

    agent_svc = Target(name='Datadog Agent', modules='win32.agent')

    extra_args = {
        'options': {
            'py2exe': {
                'includes': 'win32service,win32serviceutil,win32event,simplejson,adodbapi',
                'optimize': 2,
                'compressed': 1,
                'bundle_files': 1,
            },
        },
        'console': ['win32\shell.py'],
        'service': [agent_svc],
        'zipfile': None,
        'data_files': [("Microsoft.VC90.CRT", glob(r'C:\Python27\redist\*.*'))],
    }

setup(
    name='datadog-agent',
    version=get_version(),
    description="DevOps' best friend",
    author='DataDog',
    author_email='<EMAIL>',
    url='http://www.datadoghq.com',
    install_requires=install_requires,
    setup_requires=setup_requires,
    packages=find_packages(exclude=['ez_setup']),
    include_package_data=True,
    test_suite='nose.collector',
    zip_safe=False,
{'fraction_non_alphanumeric': 0.12914961346066395, 'fraction_numerical': 0.02546612096407458, 'mean_word_length': 2.5447219983883964, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6007724', 'n_tokens_mistral': 1484, 'n_tokens_neox': 1381, 'n_words': 293}