File tree Expand file tree Collapse file tree 1 file changed +35
-2
lines changed Expand file tree Collapse file tree 1 file changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,46 @@ bbFreeze
70
70
71
71
Prerequisite is to install :ref: `Python, Setuptools and pywin32 dependency on Windows <install-windows >`.
72
72
73
+ 1. Install :code: `bbfreeze `:
74
+
75
+ .. code-block :: console
76
+
77
+ $ pip install bbfreeze
78
+
79
+ 2. Write most basic :file: `bb_setup.py `
80
+
73
81
.. code-block :: python
74
82
75
83
from bbfreeze import Freezer
76
84
77
- freezer = Freezer(' script ' )
78
- freezer.addScript(' foobar.py' )
85
+ freezer = Freezer(distdir = ' dist ' )
86
+ freezer.addScript(' foobar.py' , gui_only = True )
79
87
freezer()
88
+
89
+ .. note ::
90
+
91
+ This will work for the most basic one file scripts. For more advanced freezing you will have to provide
92
+ include and exclude paths like so
93
+
94
+ .. code-block :: python
95
+
96
+ freezer = Freezer(distdir = ' dist' , includes = [' my_code' ], excludes = [' docs' ])
97
+
98
+ 3. (Optionally) include icon
99
+
100
+ .. code-block :: python
101
+
102
+ freezer.setIcon(' my_awesome_icon.ico' )
103
+
104
+ 4. Provide the Microsoft Visual C runtime DLL for the freezer. It might be possible to append your :code: `sys.path `
105
+ with Microsoft Visual Studio path but I find it easier to drop :file: `msvcp90.dll ` in the same folder where your script
106
+ resides.
107
+
108
+ 5. Freeze!
109
+
110
+ .. code-block :: console
111
+
112
+ $ python bb_setup.py
80
113
81
114
py2exe
82
115
~~~~~~
You can’t perform that action at this time.
0 commit comments