<commit_before>#!/usr/bin/env python
"""Setup file for python-matlab-bridge"""

import os
import sys
import shutil
import glob


# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
# update it when the contents of directories change.
if os.path.exists('MANIFEST'):
    os.remove('MANIFEST')

# Find the messenger binary file(s) and copy it to /matlab folder.
from pymatbridge.messenger.make import get_messenger_dir
messenger_dir = get_messenger_dir()

for f in glob.glob("./pymatbridge/messenger/%s/messenger.*" % messenger_dir):
    shutil.copy(f, "./pymatbridge/matlab")
    
from distutils.core import setup

# Get version and release info, which is all stored in pymatbridge/version.py
ver_file = os.path.join('pymatbridge', 'version.py')
exec(open(ver_file).read())

opts = dict(name=NAME,
            maintainer=MAINTAINER,
            maintainer_email=MAINTAINER_EMAIL,
            description=DESCRIPTION,
            long_description=LONG_DESCRIPTION,
            url=URL,
            download_url=DOWNLOAD_URL,<commit_msg>use setuptools if available<commit_after>#!/usr/bin/env python
"""Setup file for python-matlab-bridge"""

import os
import sys
import shutil
import glob


# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
# update it when the contents of directories change.
if os.path.exists('MANIFEST'):
    os.remove('MANIFEST')

# Find the messenger binary file(s) and copy it to /matlab folder.
from pymatbridge.messenger.make import get_messenger_dir
messenger_dir = get_messenger_dir()

for f in glob.glob("./pymatbridge/messenger/%s/messenger.*" % messenger_dir):
    shutil.copy(f, "./pymatbridge/matlab")
    
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

# Get version and release info, which is all stored in pymatbridge/version.py
ver_file = os.path.join('pymatbridge', 'version.py')
exec(open(ver_file).read())

opts = dict(name=NAME,
            maintainer=MAINTAINER,
            maintainer_email=MAINTAINER_EMAIL,
            description=DESCRIPTION,
            long_description=LONG_DESCRIPTION,
            url=URL,
            download_url=DOWNLOAD_URL,
{'fraction_non_alphanumeric': 0.09881061299176579, 'fraction_numerical': 0.0, 'mean_word_length': 3.870824053452116, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5020296', 'n_tokens_mistral': 703, 'n_tokens_neox': 670, 'n_words': 177}