<commit_before>import glob
import os
from os import path
from setuptools import setup, find_packages, Extension
import sys

REQUIRES = []
DESCRIPTION = 'rsync access for python'

# Note: In order to ship this you have to run the following
#       commands in order:
#
# 1. build the C files
#       python setup.py build_ext --inplace
# 2. build the distributable
#       python setup.py sdist
#       python setup.py bdist
# 3. upload the files
#       twine upload dist/...
#    or
#       python setup.py sdist upload
#       python setup.py bdist upload
#
precompiled_extensions = [
    Extension('rsync4python.rsync',
              sources=['rsync4python/rsync.c'],
              libraries=['rsync'])
]

extensions = None

try:
    from Cython.Build import cythonize
    from Cython.Distutils import build_ext

    cython_extensions = [
        Extension('rsync4python.rsync',
                  ['rsync4python/rsync.pyx'],
                  libraries=['rsync'])
    ] 
    extensions = cythonize()

except ImportError:
    extensions = precompiled_extensions
    
    

setup(
    name='rsync4python',<commit_msg>Bug Fix: call cythonize properly for when cython is available<commit_after>import glob
import os
from os import path
from setuptools import setup, find_packages, Extension
import sys

REQUIRES = []
DESCRIPTION = 'rsync access for python'

# Note: In order to ship this you have to run the following
#       commands in order:
#
# 1. build the C files
#       python setup.py build_ext --inplace
# 2. build the distributable
#       python setup.py sdist
#       python setup.py bdist
# 3. upload the files
#       twine upload dist/...
#    or
#       python setup.py sdist upload
#       python setup.py bdist upload
#
precompiled_extensions = [
    Extension('rsync4python.rsync',
              sources=['rsync4python/rsync.c'],
              libraries=['rsync'])
]

extensions = None

try:
    from Cython.Build import cythonize
    from Cython.Distutils import build_ext

    cython_extensions = [
        Extension('rsync4python.rsync',
                  ['rsync4python/rsync.pyx'],
                  libraries=['rsync'])
    ] 
    extensions = cythonize(cython_extensions)

except ImportError:
    extensions = precompiled_extensions
    
    

setup(
    name='rsync4python',
{'fraction_non_alphanumeric': 0.08561495002172968, 'fraction_numerical': 0.006953498478922208, 'mean_word_length': 2.619496855345912, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2779419', 'n_tokens_mistral': 686, 'n_tokens_neox': 676, 'n_words': 206}