releasenotes.rst 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. Release notes
  2. =============
  3. Version 2.4
  4. -----------
  5. * :ref:`command_config` can now include ``console=false`` to make a command on
  6. :envvar:`PATH` which runs without a console window (:ghpull:`179`).
  7. * Fix for using ``pywin32`` in installed code launched from a command
  8. (:ghpull:`175`).
  9. * Work around wheels where some package data files are shipped in a way that
  10. assumes the default pip install layout (:ghpull:`172`).
  11. Version 2.3
  12. -----------
  13. * Command line exes are now based on the launchers made by Vinay Sajip for
  14. `distlib <https://distlib.readthedocs.io/en/latest/>`_, instead of the
  15. launchers from setuptools. They should be more robust with spaces in paths
  16. (:ghpull:`169`).
  17. * Fixed excluding entire folders extracted from wheels (:ghissue:`168`).
  18. * When doing a per-user install of an application with commands, the ``PATH``
  19. environment variable is modified just for that user (:ghpull:`170`).
  20. Version 2.2
  21. -----------
  22. * New ``local_wheels`` option to include packages from wheel ``.whl`` files
  23. by path (:ghpull:`164`).
  24. * ``.dist-info`` directories from wheels are now installed alongside the
  25. importable packages, allowing plugin discovery mechanisms based on *entry
  26. points* to work (:ghpull:`161`).
  27. * Fixed including multiple files with the same name to be installed to different
  28. folders (:ghpull:`162`).
  29. * The ``exclude`` option now works to exclude files extracted from wheels
  30. (:ghpull:`147`).
  31. * ``exclude`` patterns work with either slash ``/`` or backslash ``\`` as
  32. separators, independent of the platform on which you build the installer
  33. (:ghpull:`148`).
  34. * Destination paths for the ``files`` include option now work with slashes
  35. as well as backslashes (:ghpull:`158`).
  36. * ``extra_preamble`` for start menu shortcuts can now use the ``installdir``
  37. variable to get the installation directory. This was already available for
  38. commands, so the change makes it easier to use a single preamble for both
  39. (:ghpull:`149`).
  40. * Test infrastructure switched to pytest and tox (:ghpull:`165`).
  41. * New FAQ entry on :ref:`faq-tkinter` (:ghpull:`146`).
  42. Version 2.1
  43. -----------
  44. * Ensure that if an icon is specified it will be used during install and
  45. uninstall, and as the icon for the installer itself (:ghpull:`143`).
  46. * Add handling of a license file. If a ``license_file`` is given in the
  47. ``Application`` section of the configuration file an additional step will take
  48. place before installation to check the user's agreement to abide by the
  49. displayed license. If the license is not given, the extra step is omitted
  50. (the default behaviour) (:ghpull:`143`).
  51. * Fix for launching Python subprocesses with the installed packages available
  52. for import (:ghpull:`142`).
  53. * Ensure ``.pth`` files in the installed packages directory are read
  54. (:ghpull:`138`).
  55. Version 2.0
  56. -----------
  57. Pynsist 2 only supports 'bundled' Python, and therefore only Python 3.5 and
  58. above. For 'installer' format Python and older Python versions, use Pynsist 1.x
  59. (``pip install pynsist<2``).
  60. * Pynsist installers can now install into a per-user directory, allowing them
  61. to be used without admin access.
  62. * Get wheels for the installer from local directories, by listing the
  63. directories in ``extra_wheel_sources`` in the ``[Include]`` section.
  64. * Better error message when copying fails on a namespace package.
  65. Version 1.12
  66. ------------
  67. * Fix a bug with unpacking wheels on Python 2.7, by switching to ``pathlib2``
  68. for the pathlib backport.
  69. Version 1.11
  70. ------------
  71. * Lists in the config file, such as ``packages`` and ``pypi_wheels`` can now
  72. begin on the line after the key.
  73. * Clearer error if the specified config file is not found.
  74. Version 1.10
  75. ------------
  76. * New optional field ``publisher``, to provide a publisher name in the uninstall
  77. list.
  78. * The uninstall information in the registry now also includes ``DisplayVersion``.
  79. * The directory containing ``python.exe`` is now added to the ``%PATH%``
  80. environment variable when your application runs. This fixes a DLL loading
  81. issue for PyQt5 if you use bundled Python.
  82. * When installing a 64-bit application, the uninstall registry keys are now
  83. added to the 64-bit view of the registry.
  84. * Fixed an error when using wheels which install files into the same package,
  85. such as ``PyQt5`` and ``PyQtChart``.
  86. * Issue a warning when we can't find the cache directory on Windows.
  87. Version 1.9
  88. -----------
  89. * When building an installer with Python 3.6 or above, bundled Python
  90. is now the default. For Python up to 3.5, 'installer' remains
  91. the default format. You can override the default by specifying ``format`` in
  92. the :ref:`cfg_python` of the config file.
  93. * The C Runtime needed for bundled Python is now installed 'app-local', rather
  94. than downloading and installing Windows Update packages at install time. This
  95. is considerably simpler, but the app-local runtime will not be updated by
  96. Windows Update. A new ``include_msvcrt`` config option allows the developer to
  97. exclude the app-local runtime - their applications will then depend on the
  98. runtime being installed systemwide.
  99. Version 1.8
  100. -----------
  101. * New example applications using:
  102. - PyQt5 with QML
  103. - OpenCV and PyQt5
  104. - `Pywebview <https://github.com/r0x0r/pywebview>`__
  105. * The code to pick an appropriate wheel now considers wheels with Python version
  106. specific ABI tags like ``cp35m``, as well as the stable ABI tags like ``abi3``.
  107. * Fixed a bug with fetching a wheel when another version of the same package
  108. is already cached.
  109. * Fixed a bug in extracting files from certain wheels.
  110. * Installers using bundled Python may need a Windows
  111. update package for the Microsoft C runtime. They now download this from the
  112. `RawGit <https://rawgit.com/>`__ CDN, rather than hitting GitHub directly.
  113. * If the Windows update package fails to install, an error message will be
  114. displayed.
  115. Version 1.7
  116. -----------
  117. * Support for downloading packages as wheels from PyPI, and new
  118. `PyQt5 <https://github.com/takluyver/pynsist/tree/master/examples/pyqt5>`__ and
  119. `Pyglet <https://github.com/takluyver/pynsist/tree/master/examples/pyglet>`__
  120. examples which use this feature.
  121. * Applications can include commands to run at the Windows command prompt. See
  122. :ref:`command_config`.
  123. Version 1.6
  124. -----------
  125. * Experimental support for creating installers that bundle Python with the
  126. application.
  127. * Support for Python 3.5 installers.
  128. * The user agent is set when downloading Python builds, so downloads from
  129. Pynsist can be identified.
  130. * New example applications using PyGI, numpy and matplotlib.
  131. * Fixed a bug with different path separators in ``exclude`` patterns.
  132. Version 1.5
  133. -----------
  134. * New ``exclude`` option to cut unnecessary files out of directories and
  135. packages that are copied into the installer.
  136. * The ``installer.nsi`` script is now built using `Jinja <http://jinja.pocoo.org/>`_
  137. templates instead of a custom templating system. If you have specify a custom
  138. ``nsi_template`` file, you will need to update it to use Jinja syntax.
  139. * GUI applications (running under :program:`pythonw`) have stdout and stderr
  140. written to a log file in ``%APPDATA%``. This should catch all ``print``,
  141. warnings, uncaught errors, and avoid the program freezing if it tries to
  142. print.
  143. * Applications run in a console (under :program:`python`) now show the traceback
  144. for an uncaught error in the console as well as writing it to the log file.
  145. * Install :program:`pynsist` command on Windows.
  146. * Fixed an error message caused by unnecessarily rerunning the installer for the
  147. PEP 397 ``py`` launcher, bundled with Python 2 applications.
  148. * :program:`pynsist` now takes a :option:`--no-makensis` option, which stops it
  149. before running :program:`makensis` for debugging.
  150. Version 1.0
  151. -----------
  152. * New ``extra_preamble`` option to specify a snippet of Python code to run
  153. before your main application.
  154. * Packages used in the specified entry points no longer need to be listed
  155. under the Include section; they are automatically included.
  156. * Write the crash log to a file in ``%APPDATA%``, not in the installation
  157. directory - on modern Windows, the application can't normally write to its
  158. install directory.
  159. * Added an example application using pygtk.
  160. * :doc:`installers` documentation added.
  161. * Install Python into ``Program Files\Common Files`` or ``Program Files (x86)\Common Files``,
  162. so that if both 32- and 64-bit Pythons of the same version are installed,
  163. neither replaces the other.
  164. * When using 64-bit Python, the application files now go in ``Program Files`` by
  165. default instead of ``Program Files (x86)``.
  166. * Fixed a bug in finding the NSIS install directory on 64-bit Windows.
  167. * Fixed a bug that prevented using multiprocessing in installed applications.
  168. * Fixed a bug where the ``py.exe`` launcher was not included if you built a
  169. Python 2 installer using Python 3.
  170. * Better error messages for some invalid input.
  171. Version 0.3
  172. -----------
  173. * Extra files can now be installed into locations other than the installation
  174. directory.
  175. * Shortcuts can have non-Python commands, e.g. to create a start menu shortcut
  176. to a help file.
  177. * The Python API has been cleaned up, and there is some :doc:`documentation
  178. <api/index>` for it.
  179. * Better support for modern versions of Windows:
  180. * Uninstall shortcuts correctly on Windows Vista and above.
  181. * Byte compile Python modules at installation, because the ``.pyc`` files
  182. can't be written when the application runs.
  183. * The Python installers are now downloaded over HTTPS instead of using GPG to
  184. validate them.
  185. * Shortcuts now launch the application with the working directory set to the
  186. user's home directory, not the application location.
  187. Version 0.2
  188. -----------
  189. * Python 2 support, thanks to `Johannes Baiter <https://github.com/jbaiter>`_.
  190. * Ability to define multiple shortcuts for one application.
  191. * Validate config files to produce more helpful errors, thanks to
  192. `Tom Wallroth <https://github.com/devsnd>`_.
  193. * Errors starting the application, such as missing libraries, are now written
  194. to a log file in the application directory, so you can work out what
  195. happened.