<commit_before>import os, glob, string, shutil
import sys
sys.path.insert(0,"lib")
from distutils.core import setup, Extension
from neuroimaging import packages, __version__, __doc__


def main(packages):

    packages = ['']+list(packages)
    ext_modules = []
    package_dir = {'': 'lib'}

    if 'neuroimaging.extra.enthought' in packages:
        ext_modules += [Extension('extra.enthought.traits.ctraits',
                                  ['lib/neuroimaging/extra/enthought/traits/ctraits.c'])]
        package_dir['neuroimaging.extra.enthought'] = 'lib/neuroimaging/extra/enthought/'

    setup( name = 'neuroimaging',
           version = __version__,
           description = 'This is a neuroimaging python package',
           author = 'Various',
           author_email = '<EMAIL>',
           ext_package = 'neuroimaging',
           packages=packages,
           ext_modules=ext_modules,
           package_dir = package_dir,
           url = 'http://neuroimaging.scipy.org',
           long_description = __doc__)


if __name__ == "__main__": main(packages)<commit_msg>path fixes for setup.py -- trying to build on windows<commit_after>import os, glob, string, shutil
import sys
sys.path.insert(0,"lib")
from distutils.core import setup, Extension
from neuroimaging import packages, __version__, __doc__


def main(packages):

    packages = ['']+list(packages)
    ext_modules = []
    package_dir = {'': 'lib'}

    if 'neuroimaging.extra.enthought' in packages:
        ext_modules += [Extension('extra.enthought.traits.ctraits',
                                  [apply(os.path.join, 'lib/neuroimaging/extra/enthought/traits/ctraits.c'.split('/'))])]
        package_dir['neuroimaging.extra.enthought'] = apply(os.path.join, 'lib/neuroimaging/extra/enthought/'.split('/'))

    setup( name = 'neuroimaging',
           version = __version__,
           description = 'This is a neuroimaging python package',
           author = 'Various',
           author_email = '<EMAIL>',
           ext_package = 'neuroimaging',
           packages=packages,
           ext_modules=ext_modules,
           package_dir = package_dir,
           url = 'http://neuroimaging.scipy.org',
           long_description = __doc__)


if __name__ == "__main__": main(packages)
{'fraction_non_alphanumeric': 0.12367957746478873, 'fraction_numerical': 0.0008802816901408451, 'mean_word_length': 2.7446457990115323, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '6751845', 'n_tokens_mistral': 682, 'n_tokens_neox': 643, 'n_words': 139}