I am creating the installer for python application by using below setup file
from cx_Freeze import setup, Executable
buildOptions = dict(excludes = ["tkinter"], includes =["idna.idnadata"], optimize=1)
setup(name = "SoftwareGateway" ,
version = "0.1" ,
description = "" ,
options =dict(build_exe = buildOptions),
executables = [Executable("main.py", base = base)])
The setup file gets the dependencies by itself but catch here in my case is, the main.py
calls another python program fun.py
using the subprocess call. When I run setup.py
, neither the fun.py
is getting compiled nor is it going into the directory after installation.
Is there a way I can get fun.py
compiled to bytecode and pack it along with installer?