YouTubeDownloader v1.1.2
YouTube content downloader
Loading...
Searching...
No Matches
generate_executable.py File Reference

Generate executable file. More...

Go to the source code of this file.

Namespaces

namespace  Executable
 
namespace  Executable.generate_executable
 

Functions

list[str] get_type_list (str type_name, list[str] l_type_values)
 get type list
 

Variables

list add_data
 
bool b_tolerate = False
 
list build_warnings = []
 
list command = [r"..\.venv\Scripts\python", "-m", "PyInstaller", "--clean"]
 
 encoding
 
str GIT_VERSION_PATH = "../Source/Util"
 
list L_EXCLUDE_MODULES
 
list L_HIDDEN_IMPORT
 
 l_not_allowed_packages = check_included_packages()
 
 log = logging.getLogger("GenerateExecutable")
 
 mode
 
list possible_build_warnings = [line for line in result.stderr.split("\n") if "WARNING" in line]
 
str report = "\n".join(result_report)
 
 result = subprocess.run(command, stderr=subprocess.PIPE, text=True, shell=True, check=False)
 
list result_report = []
 
int ret_value = 1
 
str s_spec_file = f"{__title__}.spec"
 
list TOLERATED_WARNINGS
 
str VERSION_FILE_NAME = "version_info.txt"
 
str WARNING_FILE = "PyInstaller_warnings.txt"
 
str WORKPATH = "build"
 

Detailed Description

Generate executable file.


Definition in file generate_executable.py.