releasenotes.rst 11 KB

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