forked from kal179/Beginners_Python_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_files_compiler.py
More file actions
23 lines (19 loc) · 760 Bytes
/
python_files_compiler.py
File metadata and controls
23 lines (19 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from cx_Freeze import setup, Executable
# file must be saved in same directory as the file you want to Compile
# Download cx_Freeze from source forge or run easy_install in power shell
nameOfExec = input("Name for Executable: ")
versionNumber = input("Version: ")
auth = input("Name of Author: ")
auth_email = input("Email of Author: ")
descript = input("Description: ")
filename = input("File to Compile(Add .py to file): ")
# run this file in cmd "python CompileFiles.py build" or "python CompileFiles.py build_exe"
# This setup in minimialistic
setup(
name = nameOfExec,
version = versionNumber,
description = descript,
author = auth,
author_email = auth_email,
executables = [Executable(filename)]
)