<commit_before>#!/usr/bin/env python
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
from distutils.ccompiler import get_default_compiler
import numpy

try:
    from Cython.Build import cythonize
    use_cython = True
except ImportError:
    use_cython = False

class custom_build_ext(build_ext):
    def finalize_options(self):
        build_ext.finalize_options(self)
        if self.compiler is None:
            compiler = get_default_compiler()
        else:
            compiler = self.compiler

        if compiler == 'msvc':
            include_dirs.append('compat/win32')

include_dirs = ['liblbfgs', numpy.get_include()]

if use_cython:
    ext_modules = cythonize(
        [Extension('lbfgs._lowlevel',
                   ['lbfgs/_lowlevel.pyx', 'liblbfgs/lbfgs.c'],
                   include_dirs=include_dirs)])
else:
    ext_modules = [Extension('lbfgs._lowlevel',
                             ['lbfgs/_lowlevel.c', 'liblbfgs/lbfgs.c'],
                             include_dirs=include_dirs)]


def readme():
    with open('README.rst') as f:
        return f.read()

setup(
    name="PyLBFGS",
    url='https://github.com/dedupeio/pylbfgs',
    version="0.2.0.11",
    description="LBFGS and OWL-QN optimization algorithms",
    author="<NAME>, <NAME>",
    author_email="<EMAIL>",
    packages=['lbfgs'],
    install_requires=['numpy>=1.13.1'],
    ext_modules=ext_modules,
    classifiers=[
        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",<commit_msg>bump version due to changes in setup.py<commit_after>#!/usr/bin/env python
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
from distutils.ccompiler import get_default_compiler
import numpy

try:
    from Cython.Build import cythonize
    use_cython = True
except ImportError:
    use_cython = False

class custom_build_ext(build_ext):
    def finalize_options(self):
        build_ext.finalize_options(self)
        if self.compiler is None:
            compiler = get_default_compiler()
        else:
            compiler = self.compiler

        if compiler == 'msvc':
            include_dirs.append('compat/win32')

include_dirs = ['liblbfgs', numpy.get_include()]

if use_cython:
    ext_modules = cythonize(
        [Extension('lbfgs._lowlevel',
                   ['lbfgs/_lowlevel.pyx', 'liblbfgs/lbfgs.c'],
                   include_dirs=include_dirs)])
else:
    ext_modules = [Extension('lbfgs._lowlevel',
                             ['lbfgs/_lowlevel.c', 'liblbfgs/lbfgs.c'],
                             include_dirs=include_dirs)]


def readme():
    with open('README.rst') as f:
        return f.read()

setup(
    name="PyLBFGS",
    url='https://github.com/dedupeio/pylbfgs',
    version="0.2.0.12",
    description="LBFGS and OWL-QN optimization algorithms",
    author="<NAME>, <NAME>",
    author_email="<EMAIL>",
    packages=['lbfgs'],
    install_requires=['numpy>=1.13.1'],
    ext_modules=ext_modules,
    classifiers=[
        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
{'fraction_non_alphanumeric': 0.12013588634959851, 'fraction_numerical': 0.0067943174799258805, 'mean_word_length': 2.766279069767442, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1900532', 'n_tokens_mistral': 1048, 'n_tokens_neox': 1027, 'n_words': 201}