From f5690925df897cf45818bf944b28d13f37b9f8ca Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Fri, 21 Jun 2019 14:28:46 -0700 Subject: [PATCH] bpo-37351: Removes libpython38.a from standard Windows distribution (#14276) --- Doc/whatsnew/3.8.rst | 19 +++++++++++++++++ .../2019-06-20-12-50-32.bpo-37351.asTnVW.rst | 1 + Tools/msi/README.txt | 4 +--- Tools/msi/dev/dev.wixproj | 21 ------------------- Tools/msi/dev/dev.wxs | 3 --- Tools/msi/dev/dev_files.wxs | 10 --------- 6 files changed, 21 insertions(+), 37 deletions(-) create mode 100644 Misc/NEWS.d/next/Windows/2019-06-20-12-50-32.bpo-37351.asTnVW.rst diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index d3db94590dc..1081ef21df1 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -1461,6 +1461,25 @@ Changes in the C API * The functions :c:func:`PyNode_AddChild` and :c:func:`PyParser_AddToken` now accept two additional ``int`` arguments *end_lineno* and *end_col_offset*. +.. highlight:: shell + +* The :file:`libpython38.a` file to allow MinGW tools to link directly against + :file:`python38.dll` is no longer included in the regular Windows distribution. + If you require this file, it may be generated with the ``gendef`` and + ``dlltool`` tools, which are part of the MinGW binutils package:: + + gendef python38.dll > tmp.def + dlltool --dllname python38.dll --def tmp.def --output-lib libpython38.a + + The location of an installed :file:`pythonXY.dll` will depend on the + installation options and the version and language of Windows. See + :ref:`using-on-windows` for more information. The resulting library should be + placed in the same directory as :file:`pythonXY.lib`, which is generally the + :file:`libs` directory under your Python installation. + +.. highlight:: python3 + + CPython bytecode changes ------------------------ diff --git a/Misc/NEWS.d/next/Windows/2019-06-20-12-50-32.bpo-37351.asTnVW.rst b/Misc/NEWS.d/next/Windows/2019-06-20-12-50-32.bpo-37351.asTnVW.rst new file mode 100644 index 00000000000..df2efd4a9a4 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2019-06-20-12-50-32.bpo-37351.asTnVW.rst @@ -0,0 +1 @@ +Removes libpython38.a from standard Windows distribution. diff --git a/Tools/msi/README.txt b/Tools/msi/README.txt index 07ea9f744bd..f5656b971b3 100644 --- a/Tools/msi/README.txt +++ b/Tools/msi/README.txt @@ -159,9 +159,7 @@ The following properties may be passed when building these projects. /p:BuildForRelease=(true|false) When true, adds extra verification to ensure a complete installer is - produced. For example, binutils is required when building for a release - to generate MinGW-compatible libraries, and the build will be aborted if - this fails. Defaults to false. + produced. Defaults to false. /p:ReleaseUri=(any URI) Used to generate unique IDs for the installers to allow side-by-side diff --git a/Tools/msi/dev/dev.wixproj b/Tools/msi/dev/dev.wixproj index c6e3bcf709c..4052e4b5368 100644 --- a/Tools/msi/dev/dev.wixproj +++ b/Tools/msi/dev/dev.wixproj @@ -7,12 +7,6 @@ Package - - - $(DefineConstants); - IncludeMinGWLib=1; - - @@ -31,20 +25,5 @@ - - - - <_DllToolOpts>-m i386 --as-flags=--32 - <_DllToolOpts Condition="$(Platform) == 'x64'">-m i386:x86-64 - - - - - - diff --git a/Tools/msi/dev/dev.wxs b/Tools/msi/dev/dev.wxs index a09e139c428..23a710df87d 100644 --- a/Tools/msi/dev/dev.wxs +++ b/Tools/msi/dev/dev.wxs @@ -10,9 +10,6 @@ - - - diff --git a/Tools/msi/dev/dev_files.wxs b/Tools/msi/dev/dev_files.wxs index 9654d2e3e60..21f9c848cc6 100644 --- a/Tools/msi/dev/dev_files.wxs +++ b/Tools/msi/dev/dev_files.wxs @@ -29,14 +29,4 @@ - - - - - - - - - -