Skip to content

Commit c9035bd

Browse files
committed
Updated formatting in PyInstaller for OS X section
1 parent b05b430 commit c9035bd

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

docs/shipping/freezing.rst

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -119,47 +119,47 @@ PyInstaller
119119

120120
PyInstaller can be used to build Unix executables and windowed apps on Mac OS X 10.6 (Snow Leopard) or newer.
121121

122-
- To install PyInstaller, use pip:
122+
To install PyInstaller, use pip:
123123

124-
.. code-block:: console
124+
.. code-block:: console
125125
126-
$ pip install pyinstaller
126+
$ pip install pyinstaller
127127
128-
- To create a standard Unix executable, from say :code:`script.py`, use:
128+
To create a standard Unix executable, from say :code:`script.py`, use:
129129

130-
.. code-block:: console
130+
.. code-block:: console
131131
132-
$ pyinstaller script.py
132+
$ pyinstaller script.py
133133
134-
This creates,
134+
This creates,
135135

136-
- a :code:`script.spec` file, analogous to a :code:`make` file
137-
- a :code:`build` folder, that holds some log files
138-
- a :code:`dist` folder, that holds the main executable :code:`script`, and some dependent Python libraries,
136+
- a :code:`script.spec` file, analogous to a :code:`make` file
137+
- a :code:`build` folder, that holds some log files
138+
- a :code:`dist` folder, that holds the main executable :code:`script`, and some dependent Python libraries,
139139

140-
all in the same folder as :code:`script.py`. PyInstaller puts all the Python libraries used in :code:`script.py` into the :code:`dist` folder, so when distributing the executable, distribute the whole :code:`dist` folder.
140+
all in the same folder as :code:`script.py`. PyInstaller puts all the Python libraries used in :code:`script.py` into the :code:`dist` folder, so when distributing the executable, distribute the whole :code:`dist` folder.
141141

142-
- The :code:`script.spec` file can be edited to `customise the build <http://pythonhosted.org/PyInstaller/#spec-file-operation>`_, with options such as
142+
The :code:`script.spec` file can be edited to `customise the build <http://pythonhosted.org/PyInstaller/#spec-file-operation>`_, with options such as
143143

144-
- bundling data files with the executable
145-
- including run-time libraries (:code:`.dll` or :code:`.so` files) that PyInstaller can't infer automatically
146-
- adding Python run-time options to the executable,
144+
- bundling data files with the executable
145+
- including run-time libraries (:code:`.dll` or :code:`.so` files) that PyInstaller can't infer automatically
146+
- adding Python run-time options to the executable,
147147

148-
Now :code:`script.spec` can be run with :code:`pyinstaller` (instead of using :code:`script.py` again):
148+
Now :code:`script.spec` can be run with :code:`pyinstaller` (instead of using :code:`script.py` again):
149149

150-
.. code-block:: console
150+
.. code-block:: console
151151
152-
$ pyinstaller script.spec
152+
$ pyinstaller script.spec
153153
154-
- To create a standalone windowed OS X application, use the :code:`--windowed` option
154+
To create a standalone windowed OS X application, use the :code:`--windowed` option
155155

156-
.. code-block:: console
156+
.. code-block:: console
157157
158-
$ pyinstaller --windowed script.spec
158+
$ pyinstaller --windowed script.spec
159159
160-
This creates a :code:`script.app` in the :code:`dist` folder. Make sure to use GUI packages in your Python code, like `PyQt <https://riverbankcomputing.com/software/pyqt/intro>`_ or `PySide <http://wiki.qt.io/About-PySide>`_, to control the graphical parts of the app.
160+
This creates a :code:`script.app` in the :code:`dist` folder. Make sure to use GUI packages in your Python code, like `PyQt <https://riverbankcomputing.com/software/pyqt/intro>`_ or `PySide <http://wiki.qt.io/About-PySide>`_, to control the graphical parts of the app.
161161

162-
There are several options in :code:`script.spec` related to Mac OS X app bundles `here <http://pythonhosted.org/PyInstaller/#spec-file-options-for-a-mac-os-x-bundle>`_. For example, to specify an icon for the app, use the :code:`icon=\path\to\icon.icns` option.
162+
There are several options in :code:`script.spec` related to Mac OS X app bundles `here <http://pythonhosted.org/PyInstaller/#spec-file-options-for-a-mac-os-x-bundle>`_. For example, to specify an icon for the app, use the :code:`icon=\path\to\icon.icns` option.
163163

164164

165165
Linux

0 commit comments

Comments
 (0)