<commit_before>import os
from setuptools import setup, find_packages

# Utility function to read the README file.
# Used for the long_description.  It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
    name = "mainframe-env-simulator",
    version = "0.1.0",
    author = "<NAME>",
    author_email = "<EMAIL>",
    description = ("This software is a Mainframe Programming Environment Simulator running on PC (Linux, Max OS, Windows, etc.) that will compile / assemble source code written to be compiled / assembled on a Mainframe machine. The final goal is to let the developer work on their own PC when developing / testing their programs without worrying about internet connection or connection to a Mainframe machine. It is also aimed at reduce the teaching cost of IBM Assembler, COBOL, etc."),
    license = "New BSD",
    keywords = "Simulator mainframe compiler",
    url = "http://code.google.com/p/mainframe-env-simulator/",
    packages=find_packages(),
    entry_points = {
        'console_scripts': [
            'zsub = zPE.scripts.zsub:main',
            'zfetch = zPE.scripts.zfetch:main',
            ],
        'gui_scripts': [
            'zPE = zPE.zPE_gtk:main',
            ],
        },
    include_package_data = True, # include every data file under SVN control
    zip_safe = False,            # do NOT install as a zip file; install as dir
    long_description=read('README'),
    )
<commit_msg>fixed the installation issue on windows<commit_after>import os
from setuptools import setup, find_packages
from shutil import copytree     # for including data files under Windows

# Utility function to read the README file.
# Used for the long_description.  It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()


setup(
    name = "mainframe-env-simulator",
    version = "0.1.0",
    author = "<NAME>",
    author_email = "<EMAIL>",
    description = ("This software is a Mainframe Programming Environment Simulator running on PC (Linux, Max OS, Windows, etc.) that will compile / assemble source code written to be compiled / assembled on a Mainframe machine. The final goal is to let the developer work on their own PC when developing / testing their programs without worrying about internet connection or connection to a Mainframe machine. It is also aimed at reduce the teaching cost of IBM Assembler, COBOL, etc."),
    license = "New BSD",
    keywords = "Simulator mainframe compiler",
    url = "http://code.google.com/p/mainframe-env-simulator/",
    packages=find_packages(),
    entry_points = {
        'console_scripts': [
            'zsub = zPE.scripts.zsub:main',
            'zfetch = zPE.scripts.zfetch:main',
            ],
        'gui_scripts': [
            'zPE = zPE.zPE_gtk:main',
            ],
        },
    include_package_data = True, # include every data file under SVN control
    zip_safe = False,            # do NOT install as a zip file; install as dir
    long_description=read('README'),
    )


# including data files under Windows
for (base_path, dirs, files) in os.walk('build'):
    if base_path.endswith(os.path.join('zPE', 'UI')):
        if 'image' not in dirs:
            copytree(
                os.path.join('zPE', 'UI', 'image'), # from src dir
                os.path.join(base_path, 'image')    # to build dir
                )

{'fraction_non_alphanumeric': 0.0989399293286219, 'fraction_numerical': 0.002718129926610492, 'mean_word_length': 2.890063424947146, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3881748', 'n_tokens_mistral': 1053, 'n_tokens_neox': 1030, 'n_words': 402}