@@ -1016,20 +1016,19 @@ def make(self, remove_existing=True, requirements=None, my_winpydir=None): #, f
1016
1016
self ._print_done ()
1017
1017
1018
1018
1019
- def rebuild_winpython (basedir = None , verbose = False , archis = ( 32 , 64 ) , targetdir = None ):
1019
+ def rebuild_winpython (basedir = None , verbose = False , architecture = 64 , targetdir = None ):
1020
1020
"""Rebuild winpython package from source"""
1021
1021
basedir = basedir if basedir is not None else utils .BASE_DIR
1022
- for architecture in archis :
1023
- suffix = '.win32' if architecture == 32 else '.win-amd64'
1024
- if targetdir is not None :
1025
- packdir = targetdir
1026
- else :
1027
- packdir = osp .join (basedir , 'packages' + suffix )
1028
- for name in os .listdir (packdir ):
1029
- if name .startswith ('winpython-' ) and name .endswith (('.exe' , '.whl' )):
1030
- os .remove (osp .join (packdir , name ))
1031
- utils .build_wininst (osp .dirname (osp .abspath (__file__ )), copy_to = packdir ,
1032
- architecture = architecture , verbose = verbose , installer = 'bdist_wheel' )
1022
+ suffix = '.win32' if architecture == 32 else '.win-amd64'
1023
+ if targetdir is not None :
1024
+ packdir = targetdir
1025
+ else :
1026
+ packdir = osp .join (basedir , 'packages' + suffix )
1027
+ for name in os .listdir (packdir ):
1028
+ if name .startswith ('winpython-' ) and name .endswith (('.exe' , '.whl' )):
1029
+ os .remove (osp .join (packdir , name ))
1030
+ utils .build_wininst (osp .dirname (osp .abspath (__file__ )), copy_to = packdir ,
1031
+ architecture = architecture , verbose = verbose , installer = 'bdist_wheel' )
1033
1032
1034
1033
1035
1034
def transform_in_list (list_in , list_type = None ):
@@ -1085,7 +1084,7 @@ def make_all(build_number, release_level, pyver, architecture,
1085
1084
os .mkdir (wheeldir )
1086
1085
1087
1086
# Rebuild Winpython in this wheel dir
1088
- rebuild_winpython (basedir = basedir , archis = ( architecture ,) , targetdir = wheeldir )
1087
+ rebuild_winpython (basedir = basedir , architecture = architecture , targetdir = wheeldir )
1089
1088
1090
1089
# Copy Every package directory to the wheel directory
1091
1090
0 commit comments