File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -249,8 +249,7 @@ def has_ext_modules(foo):
249249 # pip to create the appropriate form of executable for the target platform.
250250 entry_points = {
251251 'console_scripts' : [
252- 'maix-resize=maix.maix_resize:main_cli' ,
253- 'maix_test_hardware=maix.test_hardware:main' ,
252+ 'maix-resize=maix.maix_resize:main_cli'
254253 ],
255254 # 'gui_scripts': [
256255 # ],
@@ -276,9 +275,12 @@ def has_ext_modules(foo):
276275 import zipfile
277276 with zipfile .ZipFile (os .path .join ("dist" , name ), "r" ) as zip_ref :
278277 zip_ref .extractall ("dist/temp" )
279- with open ("dist/temp/MaixPy-{}.dist-info/WHEEL" .format (__version__ ), "r" , encoding = "utf-8" ) as f :
278+ wheel_path = "dist/temp/MaixPy-{}.dist-info/WHEEL" .format (__version__ )
279+ if not os .path .exists (wheel_path ):
280+ wheel_path = "dist/temp/maixpy-{}.dist-info/WHEEL" .format (__version__ )
281+ with open (wheel_path , "r" , encoding = "utf-8" ) as f :
280282 lines = f .readlines ()
281- with open ("dist/temp/MaixPy-{}.dist-info/WHEEL" . format ( __version__ ) , "w" , encoding = "utf-8" ) as f :
283+ with open (wheel_path , "w" , encoding = "utf-8" ) as f :
282284 for line in lines :
283285 if line .startswith ("Tag:" ):
284286 f .write ("Tag: py3-none-any\n " )
You can’t perform that action at this time.
0 commit comments