#NEWLINE# def make_all( build_number , release_level , pyver , architecture , basedir , verbose = False , remove_existing = True , create_installer = True , simulation = False , install_options = [ '--no-index' ] , flavor = '' , requirements = None , find_links = None , source_dirs = None , toolsdirs = None , docsdirs = None ) : #NEWLINE# #INDENT# ( "Make WinPython distribution, for a given base directory and\n    architecture:\n\n    make_winpython(build_number, release_level, architecture,\n                   basedir=None, verbose=False, remove_existing=True,\n                   create_installer=True, simulation=False)\n\n    `build_number`: build number [int]\n    `release_level`: release level (e.g. 'beta1', '') [str]\n    `pyver`: python version ('3.4' or 3.5')\n    `architecture`: [int] (32 or 64)\n    `basedir`: where will be created  tmp_wheel dir. and Winpython-xyz dir.\n    " + utils . ROOTDIR_DOC ) #NEWLINE# if ( basedir is None ) : #NEWLINE# #INDENT# basedir = utils . BASE_DIR #NEWLINE# #UNINDENT# assert ( basedir is not None ) , 'The *basedir* directory must be specified' #NEWLINE# assert ( architecture in ( 32 , 64 ) ) #NEWLINE# utils . print_box ( ( 'Making WinPython %dbits' % architecture ) ) #NEWLINE# builddir = osp . join ( basedir , ( 'build' + flavor ) ) #NEWLINE# if ( not osp . isdir ( builddir ) ) : #NEWLINE# #INDENT# os . mkdir ( builddir ) #NEWLINE# #UNINDENT# wheeldir = osp . join ( builddir , ( 'wheels_tmp_%s' % architecture ) ) #NEWLINE# if osp . isdir ( wheeldir ) : #NEWLINE# #INDENT# shutil . rmtree ( wheeldir , onerror = utils . onerror ) #NEWLINE# #UNINDENT# os . mkdir ( wheeldir ) #NEWLINE# rebuild_winpython ( basedir = basedir , architecture = architecture , targetdir = wheeldir ) #NEWLINE# source_dirs = transform_in_list ( source_dirs , 'source_dirs=' ) #NEWLINE# for m in list ( set ( source_dirs ) ) : #NEWLINE# #INDENT# if osp . isdir ( m ) : #NEWLINE# #INDENT# src_files = os . listdir ( m ) #NEWLINE# for file_name in src_files : #NEWLINE# #INDENT# full_file_name = os . path . join ( m , file_name ) #NEWLINE# shutil . copy ( full_file_name , wheeldir ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# toolsdirs = transform_in_list ( toolsdirs , 'toolsdirs=' ) #NEWLINE# docsdirs = transform_in_list ( docsdirs , 'docsdirs=' ) #NEWLINE# install_options = transform_in_list ( install_options , 'install_options' ) #NEWLINE# find_links = transform_in_list ( find_links , 'find_links' ) #NEWLINE# find_list = [ ( '--find-links=%s' % l ) for l in ( find_links + [ wheeldir ] ) ] #NEWLINE# dist = WinPythonDistribution ( build_number , release_level , builddir , wheeldir , toolsdirs , verbose = verbose , simulation = simulation , basedir = basedir , install_options = ( install_options + find_list ) , flavor = flavor , docsdirs = docsdirs ) #NEWLINE# my_winpydir = ( ( ( ( ( 'winpython-' + ( '%s' % architecture ) ) + 'bit-' ) + pyver ) + '.x.' ) + ( '%s' % build_number ) ) #NEWLINE# dist . make ( remove_existing = remove_existing , requirements = requirements , my_winpydir = my_winpydir ) #NEWLINE# if ( create_installer and ( not simulation ) ) : #NEWLINE# #INDENT# dist . create_installer ( ) #NEWLINE# #UNINDENT# return dist