<commit_before>#!/usr/bin/env python
# coding=utf8

from distutils.core import setup
from distutils.extension import Extension
try:
    from Cython.Distutils import build_ext
except ImportError:
    from Pyrex.Distutils import build_ext

import commands

def pkgconfig_include_dirs(*packages):
    flag_map = {'-I': 'include_dirs'}
    kw = {}
    for token in commands.getoutput("pkg-config --cflags %s" % ' '.join(packages)).split():
        kw.setdefault(flag_map.get(token[:2]), []).append(token[2:])
    return kw['include_dirs']


setup (
    cmdclass = {'build_ext' : build_ext},

    name = 'python-aosd',
    version = '0.1.0',
    ext_modules = [
        Extension(
            'aosd',
            ['src/aosd.pyx'],
            include_dirs= pkgconfig_include_dirs('pangocairo') + ['/usr/include/libaosd', '/usr/include/pycairo'],
            libraries = ['aosd', 'aosd-text']
        )
    ],
    requires = ['cairo'],

    author = '<NAME>',
    author_email = '<EMAIL>',
    url = 'http://code.google.com/p/python-aosd/',
    description = 'Python bindings for libaosd',
    long_description= 'This library provides python bindings for libaosd, an advanced on screen display library.',<commit_msg>Set version number to 0.2.0<commit_after>#!/usr/bin/env python
# coding=utf8

from distutils.core import setup
from distutils.extension import Extension
try:
    from Cython.Distutils import build_ext
except ImportError:
    from Pyrex.Distutils import build_ext

import commands

def pkgconfig_include_dirs(*packages):
    flag_map = {'-I': 'include_dirs'}
    kw = {}
    for token in commands.getoutput("pkg-config --cflags %s" % ' '.join(packages)).split():
        kw.setdefault(flag_map.get(token[:2]), []).append(token[2:])
    return kw['include_dirs']


setup (
    cmdclass = {'build_ext' : build_ext},

    name = 'python-aosd',
    version = '0.2.0',
    ext_modules = [
        Extension(
            'aosd',
            ['src/aosd.pyx'],
            include_dirs= pkgconfig_include_dirs('pangocairo') + ['/usr/include/libaosd', '/usr/include/pycairo'],
            libraries = ['aosd', 'aosd-text']
        )
    ],
    requires = ['cairo'],

    author = '<NAME>',
    author_email = '<EMAIL>',
    url = 'http://code.google.com/p/python-aosd/',
    description = 'Python bindings for libaosd',
    long_description= 'This library provides python bindings for libaosd, an advanced on screen display library.',
{'fraction_non_alphanumeric': 0.14708299096138044, 'fraction_numerical': 0.006162695152013147, 'mean_word_length': 3.106239460370995, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '1900820', 'n_tokens_mistral': 812, 'n_tokens_neox': 798, 'n_words': 177}