def _get_adjust_options(options, version, setuptools_url, setuptools_version):
    anaconda_error = None

    if options.dev:
        code = """
    for arg in args:
        if not arg.startswith('-'):
            print 'ERROR: no args allowed that start without a dash (-)'
            sys.exit(-1)
    args.append(join(os.path.dirname(__file__), 'devenv'))  # force the virtualenv to be in <top>/devenv
"""
        anaconda_error = "print 'ERROR: OpenMDAO go scripts cannot be used with Anaconda distributions.\\nFor more instructions on installing the dev version run:\\n\\n\\t python openmdao.devtools/src/openmdao/devtools/conda_build.py dev --help'"

    else:
        code = """
    # name of virtualenv defaults to openmdao-<version>
    if len(args) == 0:
        args.append('openmdao-%%s' %% '%s')
""" % version

        anaconda_error = "print 'ERROR: OpenMDAO go scripts cannot be used with Anaconda distributions.\\nUse the command below to install the latest version of OpenMDAO:\\n\\n\\tconda create --name <environment name> openmdao'"

    adjuster = """
def adjust_options(options, args):
    version = sys.version

    if "Analytics" in version or "Anaconda" in version:
        %s
        sys.exit(-1)

    major_version = sys.version_info[:2]
    if major_version != (2,7):
        print 'ERROR: python major version must be 2.7, yours is %%s' %% str(major_version)
        sys.exit(-1)
%s
    # Check if we're running in an activated environment.
    virtual_env = os.environ.get('VIRTUAL_ENV')

    if options.relocatable:
        import distutils.util
        import zipfile

        if not virtual_env:
            print 'ERROR: --relocatable requires an activated environment'
            sys.exit(-1)

        # Make current environment relocatable.
        make_environment_relocatable(virtual_env)

        # Copy files to archive.
        base = os.path.basename(virtual_env)
        zipname = '%%s-%%s.zip' %% (base, distutils.util.get_platform())
        print 'Packing the relocatable environment into', zipname
        count = 0
        with zipfile.ZipFile(zipname, 'w', zipfile.ZIP_DEFLATED) as zipped:
            for dirpath, dirname, filenames in os.walk(virtual_env):
                arcpath = os.path.join(base, dirpath[len(virtual_env)+1:])
                for filename in filenames:
                    count += 1
                    if (count %% 100) == 0:
                        sys.stdout.write('.')
                        sys.stdout.flush()
                    zipped.write(os.path.join(dirpath, filename),
                                 os.path.join(arcpath, filename))
            zipped.writestr(os.path.join(base, 'script-fixer.py'),
                            _SCRIPT_FIXER)
        print "\\nRemember to run 'python script-fixer.py' after unpacking."
        sys.exit(0)

    if virtual_env:
        # Install in current environment.
        after_install(options, virtual_env, activated=True)

    try:
        if not is_win:
            download('%s')
        import ez_setup
        ez_setup.use_setuptools(version='%s', download_base='https://openmdao.org/dists')
        os.remove('ez_setup.py')
    except Exception as err:
        logger.warn(str(err))

""" % (anaconda_error, code, setuptools_url, setuptools_version)

    fixer = '''
_SCRIPT_FIXER = """\\
import glob
import os.path
import sys


def main():
    # Move to script directory of the unzipped environment.
    root = os.path.dirname(os.path.abspath(__file__))
    scripts = 'Scripts' if sys.platform == 'win32' else 'bin'
    scripts = os.path.join(root, scripts)
    os.chdir(scripts)
    tmpname = 'script-to-fix'

    # Fix activate scripts.
    for filename in sorted(glob.glob('activate*')):
        if filename == 'activate':         # Bourne/bash.
            pattern = 'VIRTUAL_ENV="'
        elif filename == 'activate.csh':   # C shell.
            pattern = 'setenv VIRTUAL_ENV "'
        elif filename == 'activate.fish':  # ?
            pattern = 'set -gx VIRTUAL_ENV "'
        elif filename == 'activate.bat':   # Windows.
            pattern = 'set "VIRTUAL_ENV='
        else:
            continue

        print 'Fixing', filename
        if os.path.exists(tmpname):
            os.remove(tmpname)
        os.rename(filename, tmpname)
        with open(tmpname, 'rU') as inp:
            with open(filename, 'w') as out:
                for line in inp:
                    if line.startswith(pattern):
                        line = '%s%s"\\\\n' % (pattern, root)
                    out.write(line)
        os.remove(tmpname)

    # Fix Windows 'shadow' scripts.
    if sys.platform == 'win32':
        replacement = '#!%s\\\\\\\\python.exe\\\\n' % scripts
        for filename in sorted(glob.glob('*-script.py')):
            print 'Fixing', filename
            if os.path.exists(tmpname):
                os.remove(tmpname)
            os.rename(filename, tmpname)
            with open(tmpname, 'rU') as inp:
                with open(filename, 'w') as out:
                   for line in inp:
                       if line.startswith('#!'):
                           line = replacement
                       out.write(line)
            os.remove(tmpname)


if __name__ == '__main__':
    main()
"""'''
    return adjuster + fixer
we form the data into a 2-d including indexes,values,mask
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.devtools/src/openmdao/devtools/mkinstaller.py/_get_adjust_options--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/io/pytables.py/AppendableTable.write_data