releasenotes.rst 9.5 KB

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