File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 22try :
33 from colorama import Fore , Style
44except ImportError :
5- print ("Colorama not installed. Do 'pip3 install colorama' to run " )
5+ print ("Module 'colorama' is not available. Run 'pip3 install colorama' to install it. " )
66
77F = Fore # Changes the foreground color of the text (F.COLOR)
88SR = Style .RESET_ALL # Resets any color applied to the text
1414 os .system ('pip3 install wheel --upgrade >nul' )
1515 os .system ('pip3 install setuptools --upgrade >nul' )
1616
17- print (f"{ F .CYAN } --> Building packages with 'setup.py'...{ SR } " )
1817 # building tar package with sdist
18+ print (f"{ F .CYAN } --> Building packages with 'setup.py'...{ SR } " )
1919 os .system ('python3 setup.py sdist' )
2020 print (f"{ F .CYAN } --> Created tar file{ SR } " )
2121
2222 # building whl package with bdist_wheel
2323 os .system ('python3 setup.py bdist_wheel' )
2424 print (f"{ F .CYAN } --> Created whl file{ SR } " )
2525
26- print ("" )
27- print (f"{ F .CYAN } Building complete. Files can be found under the local 'dist/' folder{ SR } " )
26+ print (f"\n { F .CYAN } Building complete. Files can be found under the local 'dist/' folder{ SR } " )
2827
29- input (f'{ F .CYAN } Press ENTER to exit.{ SR } ' )
3028else :
3129 print (f"{ F .CYAN } --> Script 'build.py' was called but not run as 'main'{ SR } " )
32- input (f'{ F .CYAN } --> Press ENTER to exit.{ SR } ' )
30+
31+ input (f'{ F .CYAN } Press ENTER to exit.{ SR } ' )
You can’t perform that action at this time.
0 commit comments