@@ -48,9 +48,8 @@ def add_file(bundle, src_file, zip_name):
4848 return file_sector_size
4949
5050
51- def build_bundle (libs , bundle_version , output_filename ,
52- build_tools_version = "devel" , mpy_cross = None , example_bundle = False ,
53- pkg_folder_prefix = None ):
51+ def build_bundle (libs , bundle_version , output_filename , pkg_folder_prefix ,
52+ build_tools_version = "devel" , mpy_cross = None , example_bundle = False ):
5453 build_dir = "build-" + os .path .basename (output_filename )
5554 top_folder = os .path .basename (output_filename ).replace (".zip" , "" )
5655 build_lib_dir = os .path .join (build_dir , top_folder , "lib" )
@@ -70,7 +69,7 @@ def build_bundle(libs, bundle_version, output_filename,
7069 success = True
7170 for library_path in libs :
7271 try :
73- build .library (library_path , build_lib_dir , pkg_folder_prefix = pkg_folder_prefix ,
72+ build .library (library_path , build_lib_dir , pkg_folder_prefix ,
7473 mpy_cross = mpy_cross , example_bundle = example_bundle )
7574 except ValueError as e :
7675 print ("build.library failure:" , library_path )
@@ -159,8 +158,7 @@ def build_bundles(filename_prefix, output_directory, library_location, library_d
159158 zip_filename = os .path .join (output_directory ,
160159 filename_prefix + '-py-{VERSION}.zip' .format (
161160 VERSION = bundle_version ))
162- build_bundle (libs , bundle_version , zip_filename ,
163- pkg_folder_prefix = package_folder_prefix ,
161+ build_bundle (libs , bundle_version , zip_filename , package_folder_prefix ,
164162 build_tools_version = build_tools_version )
165163
166164 # Build .mpy bundle(s)
@@ -177,13 +175,12 @@ def build_bundles(filename_prefix, output_directory, library_location, library_d
177175 filename_prefix + '-{TAG}-mpy-{VERSION}.zip' .format (
178176 TAG = version ["name" ],
179177 VERSION = bundle_version ))
180- build_bundle (libs , bundle_version , zip_filename , mpy_cross = mpy_cross ,
181- build_tools_version = build_tools_version ,
182- pkg_folder_prefix = package_folder_prefix )
178+ build_bundle (libs , bundle_version , zip_filename , package_folder_prefix ,
179+ mpy_cross = mpy_cross , build_tools_version = build_tools_version )
183180
184181 # Build example bundle
185182 zip_filename = os .path .join (output_directory ,
186183 filename_prefix + '-examples-{VERSION}.zip' .format (
187184 VERSION = bundle_version ))
188- build_bundle (libs , bundle_version , zip_filename ,
185+ build_bundle (libs , bundle_version , zip_filename , package_folder_prefix ,
189186 build_tools_version = build_tools_version , example_bundle = True )
0 commit comments