cx_Freeze For Windows
In a nutshell: Create custom scripts for the programs and code you create via Python, strings that can include your custom options via this set #Python script #Freeze script #Script to executable #Script #Python #Executable #Freeze
What's new in cx_Freeze 6.15.12:
- Replace SetDllDirectory by AddDllDirectory
- Build(deps): bump actions/setup-python from 4 to 5 [pre-commit.ci]
- Pre-commit autoupdatebuild(deps): bump github/codeql-action from 2 to 3
- Build(deps): bump actions/upload-artifact from 3 to 4
cx_Freeze was specially built as an accessible set of scripts and modules for freezing Python scripts into executables. Even though they work using the same principle of py2exe and py2app, unlike these two tools, the suite is cross platform and should work on any platform that Python itself works on. Take note that the app creates a folder containing an executable along with the shared libraries it needs to run.
According to the developer, there are three different ways you can use the scripts, the simplest and most straightforward being to employ the actual the scripts provided within the archive. Then again, if you need to work with more complicated strings that may need embedding or extending, then the developer recommends you work directly with the classes and modules used internally by the program.
The third and last way you can take advantage of the tool is to create a distutils setup script or setup.py as it is dubbed in the standard convention. As you probably hinted, this option could come in handy if you need to work with extra options when you are freezing the program, for instance. This way, these options are saved within the script and saves you a lot of time and energy in the long run.