<commit_before>import os
from distutils import file_util
from distutils import dir_util
from distutils import sysconfig
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize

import eigency
import numpy as np

__package_name__ = "eigency"
__eigen_dir__ = eigency.__eigen_dir__

extensions = [
    Extension("eigency.conversions", ["eigency/conversions.pyx"],
              include_dirs = [np.get_include(), __eigen_dir__]
    ),
    Extension("eigency.core", ["eigency/core.pyx"],
              include_dirs = [np.get_include(), __eigen_dir__],
              language="c++"
    )
]

try:
    import pypandoc
    long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
    long_description = open('README.md').read()

dist = setup(
    name = __package_name__,
    version = "1.4",
    description = "Cython interface between the numpy arrays and the Matrix/Array classes of the Eigen C++ library",
    long_description=long_description,
    author = "<NAME>",
    author_email = "<EMAIL>",
    url = "https://github.com/wouterboomsma/eigency",
    download_url = "https://github.com/wouterboomsma/eigency/tarball/1.4",
    ext_modules = cythonize(extensions),
    packages = [__package_name__]
)

if dist.command_obj.has_key('install'):
    destination_path = dist.command_obj['install'].install_lib
    package_path = os.path.join(destination_path, __package_name__)

    # Copy cython files
    file_util.copy_file('eigency/core.pxd', package_path, update=1, preserve_mode=0)
    file_util.copy_file('eigency/core.pyx', package_path, update=1, preserve_mode=0)
    file_util.copy_file('eigency/conversions.pxd', package_path, update=1, preserve_mode=0)
    file_util.copy_file('eigency/conversions.pyx', package_path, update=1, preserve_mode=0)

    # Copy C++ file
    file_util.copy_file('eigency/eigency_cpp.h', package_path, update=1, preserve_mode=0)
    file_util.copy_file('eigency/conversions_api.h', package_path, update=1, preserve_mode=0)
    
    # Copy Eigen header files
    eigen_path = os.path.join(package_path, __eigen_dir__)
    dir_util.copy_tree(__eigen_dir__, eigen_path, update=1, preserve_mode=0)<commit_msg>Bumped version to 1.5<commit_after>import os
from distutils import file_util
from distutils import dir_util
from distutils import sysconfig
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize

import eigency
import numpy as np

__package_name__ = "eigency"
__eigen_dir__ = eigency.__eigen_dir__

extensions = [
    Extension("eigency.conversions", ["eigency/conversions.pyx"],
              include_dirs = [np.get_include(), __eigen_dir__]
    ),
    Extension("eigency.core", ["eigency/core.pyx"],
              include_dirs = [np.get_include(), __eigen_dir__],
              language="c++"
    )
]

try:
    import pypandoc
    long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
    long_description = open('README.md').read()

dist = setup(
    name = __package_name__,
    version = "1.5",
    description = "Cython interface between the numpy arrays and the Matrix/Array classes of the Eigen C++ library",
    long_description=long_description,
    author = "<NAME>",
    author_email = "<EMAIL>",
    url = "https://github.com/wouterboomsma/eigency",
    download_url = "https://github.com/wouterboomsma/eigency/tarball/1.5",
    ext_modules = cythonize(extensions),
    packages = [__package_name__]
)

if dist.command_obj.has_key('install'):
    destination_path = dist.command_obj['install'].install_lib
    package_path = os.path.join(destination_path, __package_name__)

    # Copy cython files
    file_util.copy_file('eigency/core.pxd', package_path, update=1, preserve_mode=0)
    file_util.copy_file('eigency/core.pyx', package_path, update=1, preserve_mode=0)
    file_util.copy_file('eigency/conversions.pxd', package_path, update=1, preserve_mode=0)
    file_util.copy_file('eigency/conversions.pyx', package_path, update=1, preserve_mode=0)

    # Copy C++ file
    file_util.copy_file('eigency/eigency_cpp.h', package_path, update=1, preserve_mode=0)
    file_util.copy_file('eigency/conversions_api.h', package_path, update=1, preserve_mode=0)
    
    # Copy Eigen header files
    eigen_path = os.path.join(package_path, __eigen_dir__)
    dir_util.copy_tree(__eigen_dir__, eigen_path, update=1, preserve_mode=0)
{'fraction_non_alphanumeric': 0.11578237410071943, 'fraction_numerical': 0.0085431654676259, 'mean_word_length': 4.5130111524163565, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '1281606', 'n_tokens_mistral': 1500, 'n_tokens_neox': 1495, 'n_words': 284}