Пример #1
0
def test_03_install():
    from pythonz.commands.install import InstallCommand
    for t, versions in TESTPY_VERSION:
        o = Options({'type': t, 'force':True, 'run_tests':False, 'url': None,
                     'file': None, 'verbose':False, 'configure': "",
                     'framework':False, 'universal':False, 'static':False})
        c = InstallCommand()
        c.run_command(o, [versions.pop()]) # pythonz install 2.5.5
        if versions:
            c.run_command(o, versions) # pythonz install 2.6.6 2.7.3 3.2
Пример #2
0
def install_cmd(argv):
    '''Use Pythonz to download and build the specified Python version'''
    installer = InstallCommand()
    options, versions = installer.parser.parse_args(argv)
    if len(versions) != 1:
        installer.parser.print_help()
        sys.exit(1)
    else:
        try:
            actual_installer = PythonInstaller.get_installer(versions[0], options)
            actual_installer.install()
        except AlreadyInstalledError as e:
            print(e)
Пример #3
0
def test_03_install():
    from pythonz.commands.install import InstallCommand
    for t, versions in TESTPY_VERSION:
        o = Options({'type': t, 'force':True, 'run_tests':False, 'url': None,
                     'file': None, 'verbose':False, 'configure': "",
                     'framework':False, 'universal':False, 'shared':False})
        c = InstallCommand()
        c.run_command(o, [versions.pop()]) # pythonz install 2.5.5
        if versions:
            c.run_command(o, versions) # pythonz install 2.6.6 2.7.3 3.2