Commits

Thomas Kluyver committed 4342f1e

Documentation on MSVCR problem mentions the include-msvcr option.

Comments (0)

Files changed (2)

doc/distutils.rst

 
 On Mac OS X, you can use ``bdist_dmg`` to build a Mac disk image.
 
-
-
 distutils commands
 ------------------
 
 |                       | defaults to ``build/``                              |
 +-----------------------+-----------------------------------------------------+
 
+.. _distutils_build_exe:
+
 build_exe
 `````````
 
 --------------------------------------------
 
 Python on Windows requires the Microsoft Visual C++ Redistributable Package.
-Its DLLs are stored in a different way from most DLLs,
-and cx_Freeze doesn't currently automatically copy them, (for technical
-details, see `this mailing list thread
-<http://www.mail-archive.com/cx-freeze-users@lists.sourceforge.net/msg00087.html>`_).
-You have two options to deal with this:
+cx_Freeze doesn't automatically include this, because it's not clear that everyone
+has the right to redistribute the DLLs. You're responsible for checking the
+license conditions associated with the DLLs you have installed.
 
-1. Get your users to install the Microsoft Visual C++ Redistributable
-   Package (a free download from Microsoft). 
-   It's not uncommon for this to already be present on modern computers, but
-   it's not (as far as we know) part of a standard Windows installation. Note
-   that the "SP1" version of this *does not* work -- it has to exactly match
-   the version which Python itself is compiled with.
-      * 2008 (Python 2.6-3.2) `for x86 (32 bit) Windows <http://www.microsoft.com/download/en/details.aspx?id=29>`_
-        or `for x64 (64 bit) Windows <http://www.microsoft.com/download/en/details.aspx?id=15336>`_
-      * 2010 (Python 3.3) `for x86 (32 bit) Windows <http://www.microsoft.com/en-gb/download/details.aspx?id=5555>`_
-        or `for x64 (64 bit) Windows <http://www.microsoft.com/en-us/download/details.aspx?id=14632>`_
+* If your license allows you to distribute these files, specify the
+  ``include-msvcr`` option to :ref:`distutils_build_exe` to have them
+  distributed automatically.
 
-2. Copy the following files from your system to the directory where cx_Freeze
-   has assembled your files. You are responsible for making sure that you have
-   the right to redistribute them::
-
-    C:\WINDOWS\WinSxS\Manifests\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375.manifest
-    C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375\msvcm90.dll
-    C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375\msvcp90.dll
-    C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375\msvcr90.dll
-    
-   .. note:: These locations are for the 2008 version. The 2010 version will be
-      in a similarly named directory.
-
+* If not, your users or your installer will need to install the Microsoft Visual
+  C++ Redistributable Package (a free download from Microsoft).
+  It's not uncommon for this to already be present on modern computers, but
+  it's not, as far as we know, part of a standard Windows installation. Note
+  that the "SP1" version of this *does not* work -- it has to exactly match
+  the version which Python itself is compiled with.
+     * 2008 (Python 2.6-3.2) `for x86 (32 bit) Windows <http://www.microsoft.com/download/en/details.aspx?id=29>`_
+       or `for x64 (64 bit) Windows <http://www.microsoft.com/download/en/details.aspx?id=15336>`_
+     * 2010 (Python 3.3) `for x86 (32 bit) Windows <http://www.microsoft.com/en-gb/download/details.aspx?id=5555>`_
+       or `for x64 (64 bit) Windows <http://www.microsoft.com/en-us/download/details.aspx?id=14632>`_