示例#1
0
文件: make.py 项目: svisser/winpython
def make_all(build_number,
             release_level,
             pyver,
             rootdir=None,
             simulation=False,
             create_installer=True,
             verbose=False,
             remove_existing=True,
             archis=(32, 64),
             install_options=['--no-deps']):
    """Make WinPython for both 32 and 64bit architectures:

    make_all(build_number, release_level, pyver, rootdir, simulation=False,
             create_installer=True, verbose=False, remove_existing=True)

    `build_number`: build number [int]
    `release_level`: release level (e.g. 'beta1', '') [str]
    `pyver`: Python version (X.Y format) [str]
    `rootdir`: [str] if None, WINPYTHONROOTDIR env var must be set
    (rootdir: root directory containing 'basedir27', 'basedir33', etc.)
    """ + utils.ROOTDIR_DOC
    basedir = utils.get_basedir(pyver, rootdir=rootdir)
    rebuild_winpython(basedir=basedir, archis=archis)
    for architecture in archis:
        make_winpython(build_number,
                       release_level,
                       architecture,
                       basedir,
                       verbose,
                       remove_existing,
                       create_installer,
                       simulation,
                       rootdir=rootdir,
                       install_options=install_options)
示例#2
0
文件: make.py 项目: modoj/winpython
def make_all(build_number, release_level, pyver,
             rootdir=None, simulation=False, create_installer=True,
             verbose=False, remove_existing=True, archis=(32, 64),
             install_options=['--no-index'], flavor='', requirements=None,
             find_links=None):
    """Make WinPython for both 32 and 64bit architectures:

    make_all(build_number, release_level, pyver, rootdir, simulation=False,
             create_installer=True, verbose=False, remove_existing=True)

    `build_number`: build number [int]
    `release_level`: release level (e.g. 'beta1', '') [str]
    `pyver`: Python version (X.Y format) [str]
    `rootdir`: [str] if None, WINPYTHONROOTDIR env var must be set
    (rootdir: root directory containing 'basedir27', 'basedir33', etc.)
    """ + utils.ROOTDIR_DOC

    if install_options:
        if not list(install_options) == install_options:
            install_options = install_options.split()
        print('install_options', install_options)
    basedir = utils.get_basedir(pyver, rootdir=rootdir)
    rebuild_winpython(basedir=basedir, archis=archis)
    for architecture in archis:
        make_winpython(build_number, release_level, architecture, basedir,
                       verbose, remove_existing, create_installer, simulation,
                       rootdir=rootdir, install_options=install_options,
                       flavor=flavor, requirements=requirements,
                       find_links=find_links)
示例#3
0
def test_python_packages(pyver):
    """Check if all Python packages are supported by WinPython"""
    basedir = utils.get_basedir(pyver)
    for suffix in ('src', 'win32', 'win-amd64'):
        dirname = osp.join(basedir, 'packages.%s' % suffix)
        for name in os.listdir(dirname):
            if osp.isfile(osp.join(dirname, name)) \
               and not re.match(r'python-([0-9\.]*)(\.amd64)?\.msi', name):
                try:
                    print(wppm.Package(name))
                    print('')
                except:
                    print('failed: %s' % name, file=sys.stderr)
示例#4
0
def test_python_packages(pyver):
    """Check if all Python packages are supported by WinPython"""
    basedir = utils.get_basedir(pyver)
    for suffix in ('src', 'win32', 'win-amd64'):
        dirname = osp.join(basedir, 'packages.%s' % suffix)
        for name in os.listdir(dirname):
            if osp.isfile(osp.join(dirname, name)) \
               and not re.match(r'python-([0-9\.]*)(\.amd64)?\.msi', name):
                try:
                    print(wppm.Package(name))
                    print('')
                except:
                    print('failed: %s' % name, file=sys.stderr)
示例#5
0
文件: make.py 项目: DINKIN/winpython
def make_all(build_number, release_level, pyver,
             rootdir=None, simulation=False, create_installer=True,
             verbose=False, remove_existing=True):
    """Make WinPython for both 32 and 64bit architectures:
    
    make_all(build_number, release_level, pyver, rootdir, simulation=False,
             create_installer=True, verbose=False, remove_existing=True)

    `build_number`: build number [int]
    `release_level`: release level (e.g. 'beta1', '') [str]
    `pyver`: Python version (X.Y format) [str]
    `rootdir`: [str] if None, WINPYTHONROOTDIR env var must be set
    (rootdir: root directory containing 'basedir27', 'basedir33', etc.)
    """ + utils.ROOTDIR_DOC
    basedir = utils.get_basedir(pyver, rootdir=rootdir)
    rebuild_winpython(basedir=basedir)
    for architecture in (64, 32):
        make_winpython(build_number, release_level, architecture, basedir,
                       verbose, remove_existing, create_installer, simulation)
示例#6
0
def upload_installer(version, architecture):
    """Upload to WinPython GoogleCode project"""
    assert architecture in (32, 64)
    file_path = osp.join(utils.get_basedir(version), "build",
                         "WinPython-%dbit-%s.exe" % (architecture, version))
    summary = "WinPython %dbit %s" % (architecture, version)

    user, password = get_hg_user_password()
    labels = ["Featured", "Type-Installer", "OpSys-Windows"]

    status, reason, url = gu.upload_find_auth(file_path, "winpython", summary,
                                              labels, user, password)
    if url:
        print('Uploaded: %s' % url)
    else:
        print('An error occurred. Your file was not uploaded.',
              file=sys.stderr)
        print('Google Code upload server said: %s (%s)' % (reason, status),
              file=sys.stderr)
示例#7
0
def upload_installer(version, architecture):
    """Upload to WinPython GoogleCode project"""
    assert architecture in (32, 64)
    file_path = osp.join(utils.get_basedir(version), "build",
                         "WinPython-%dbit-%s.exe" % (architecture, version))
    summary = "WinPython %dbit %s" % (architecture, version)
    
    user, password = get_hg_user_password()
    labels = ["Featured", "Type-Installer", "OpSys-Windows"]
    
    status, reason, url = gu.upload_find_auth(file_path, "winpython",
                                              summary, labels, user, password)
    if url:
        print('Uploaded: %s' % url)
    else:
        print('An error occurred. Your file was not uploaded.',
              file=sys.stderr)
        print('Google Code upload server said: %s (%s)' % (reason, status),
              file=sys.stderr)