Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dde0167

Browse files
committed
Update make_installer.py tool
1 parent ebdb184 commit dde0167

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/make_installer.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@
4343
def main():
4444
command_line_args()
4545

46+
# Make sure pyinstaller build/dist directories do not exist,
47+
# otherwise they would be packed along with examples and thus
48+
# increase package size significantly.
49+
assert not os.path.exists(os.path.join(EXAMPLES_DIR,
50+
"pyinstaller", "build"))
51+
assert not os.path.exists(os.path.join(EXAMPLES_DIR,
52+
"pyinstaller", "dist"))
53+
4654
# Setup and package directories
4755
global SETUP_DIR, PKG_DIR
4856
setup_dir_name = get_setup_installer_basename(VERSION, OS_POSTFIX2)

0 commit comments

Comments
 (0)