Skip to content

Commit f35d4cd

Browse files
authored
Update pack.py
code cleanup. nothing was optimized or changed except some text. still works the same though
1 parent 6dfd104 commit f35d4cd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pack.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
try:
33
from colorama import Fore, Style
44
except 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

77
F = Fore # Changes the foreground color of the text (F.COLOR)
88
SR = Style.RESET_ALL # Resets any color applied to the text
@@ -14,19 +14,18 @@
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}')
3028
else:
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}')

0 commit comments

Comments
 (0)