<commit_before>from setuptools import setup, Extension
from Cython.Build import cythonize
from glob import glob

library = ('primesieve', dict(
    sources=glob("lib/primesieve/src/primesieve/*.cpp"),
    include_dirs=["lib/primesieve/include"],
    language="c++",
    ))

extension = Extension(
        "primesieve",
        ["primesieve/primesieve.pyx"],
        include_dirs = ["lib/primesieve/include"],
        language="c++",
        )

setup(
    name='primesieve',
    url = "https://github.com/hickford/primesieve-python",
    license = "MIT",
    libraries = [library],
    ext_modules = cythonize(extension),
)<commit_msg>install without cython<commit_after>from setuptools import setup, Extension
from glob import glob

library = ('primesieve', dict(
    sources=glob("lib/primesieve/src/primesieve/*.cpp"),
    include_dirs=["lib/primesieve/include"],
    language="c++",
    ))

try:
    from Cython.Build import cythonize
except ImportError:
    cythonize = None

extension = Extension(
        "primesieve",
        ["primesieve/primesieve.pyx"] if cythonize else ["primesieve/primesieve.cpp"],
        include_dirs = ["lib/primesieve/include"],
        language="c++",
        )

if cythonize:
    extension = cythonize(extension)

setup(
    name='primesieve',
    url = "https://github.com/hickford/primesieve-python",
    license = "MIT",
    libraries = [library],
    ext_modules = [extension],
)
{'fraction_non_alphanumeric': 0.1430584918957012, 'fraction_numerical': 0.0, 'mean_word_length': 3.4654088050314464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1281658', 'n_tokens_mistral': 455, 'n_tokens_neox': 457, 'n_words': 87}