@@ -645,17 +645,6 @@ def rebuild_winpython(basedir=None, verbose=False):
645645 architecture = architecture , verbose = verbose )
646646
647647
648- ROOTDIR_DOC = """
649-
650- The WinPython root directory (WINPYTHONROOTDIR environment variable which
651- may be overriden with the `rootdir` option) contains the following folders:
652- * (required) `packages.win32`: contains distutils 32-bit packages
653- * (required) `packages.win-amd64`: contains distutils 64-bit packages
654- * (optional) `packages.src`: contains distutils source distributions
655- * (required) `tools`: contains architecture-independent tools
656- * (optional) `tools.win32`: contains 32-bit-specific tools
657- * (optional) `tools.win-amd64`: contains 64-bit-specific tools"""
658-
659648def make_winpython (build_number , release_level , architecture ,
660649 basedir = None , verbose = False , remove_existing = True ,
661650 create_installer = True , simulation = False ):
@@ -671,7 +660,7 @@ def make_winpython(build_number, release_level, architecture,
671660 `architecture`: [int] (32 or 64)
672661 `basedir`: [str] if None, WINPYTHONBASEDIR env var must be set
673662 (rootdir: root directory containing 'basedir27', 'basedir33', etc.)
674- """ + ROOTDIR_DOC
663+ """ + utils . ROOTDIR_DOC
675664 basedir = basedir if basedir is not None else utils .BASE_DIR
676665 assert basedir is not None , "The *basedir* directory must be specified"
677666 assert architecture in (32 , 64 )
@@ -698,18 +687,6 @@ def make_winpython(build_number, release_level, architecture,
698687 dist .create_installer ()
699688 return dist
700689
701- def get_basedir (pyver , rootdir = None ):
702- """Get basedir from Python version
703-
704- `pyver`: Python version (X.Y format) [str]
705- `rootdir`: [str] if None, WINPYTHONROOTDIR env var must be set
706- (rootdir: root directory containing 'basedir27', 'basedir33', etc.)
707- """ + ROOTDIR_DOC
708- assert re .match (r'[0-9]+\.[0-9]+' , pyver ) is not None
709- rootdir = rootdir if rootdir is not None else utils .ROOT_DIR
710- assert rootdir is not None , "The *rootdir* directory must be specified"
711- return osp .join (rootdir , 'basedir%s' % pyver [::2 ][:2 ])
712-
713690def make_all (build_number , release_level , pyver ,
714691 rootdir = None , simulation = False , create_installer = True ,
715692 verbose = False , remove_existing = True ):
@@ -723,21 +700,21 @@ def make_all(build_number, release_level, pyver,
723700 `pyver`: Python version (X.Y format) [str]
724701 `rootdir`: [str] if None, WINPYTHONROOTDIR env var must be set
725702 (rootdir: root directory containing 'basedir27', 'basedir33', etc.)
726- """ + ROOTDIR_DOC
727- basedir = get_basedir (pyver , rootdir = rootdir )
703+ """ + utils . ROOTDIR_DOC
704+ basedir = utils . get_basedir (pyver , rootdir = rootdir )
728705 rebuild_winpython (basedir = basedir )
729706 for architecture in (64 , 32 ):
730707 make_winpython (build_number , release_level , architecture , basedir ,
731708 verbose , remove_existing , create_installer , simulation )
732709
733710
734711if __name__ == '__main__' :
735- make_all (3 , '' , pyver = '3.3' )#, create_installer=False)#, remove_existing=False, simulation=True)
736- make_all (3 , '' , pyver = '2.7' )#, create_installer=False)#, remove_existing=False, simulation=True)
712+ make_all (0 , '' , pyver = '3.3' )#, create_installer=False)#, remove_existing=False, simulation=True)
713+ make_all (0 , '' , pyver = '2.7' )#, create_installer=False)#, remove_existing=False, simulation=True)
737714
738715 import upload
739716 import time
740- for version in ("3.3.2.3 " , "2.7.5.3 " ):
717+ for version in ("3.3.3.0 " , "2.7.6.0 " ):
741718 for architecture in (64 , 32 ):
742719 print (time .ctime ())
743720 upload .upload_installer (version , architecture )
0 commit comments