diff options
author | Wulian <1055917385@qq.com> | 2024-09-23 23:09:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 23:09:22 (GMT) |
commit | 27a62e7371f062a80704f6bf4d6e8f06568d37aa (patch) | |
tree | 66f3a0afc3af62bf1569f74a70d0aaf9f38c44a0 /Tools/msi | |
parent | 8a2baedc4bcb606da937e4e066b4b3a18961cace (diff) | |
download | cpython-27a62e7371f062a80704f6bf4d6e8f06568d37aa.zip cpython-27a62e7371f062a80704f6bf4d6e8f06568d37aa.tar.gz cpython-27a62e7371f062a80704f6bf4d6e8f06568d37aa.tar.bz2 |
gh-124102: Update internal PCbuild docs to accurately list build dependencies (GH-124103)
Diffstat (limited to 'Tools/msi')
-rw-r--r-- | Tools/msi/README.txt | 24 | ||||
-rw-r--r-- | Tools/msi/bundle/bootstrap/pythonba.vcxproj | 3 |
2 files changed, 9 insertions, 18 deletions
diff --git a/Tools/msi/README.txt b/Tools/msi/README.txt index c25ada8..98e5ba0 100644 --- a/Tools/msi/README.txt +++ b/Tools/msi/README.txt @@ -9,7 +9,7 @@ script: For an official release, the installer should be built with the Tools/msi/buildrelease.bat script and environment variables: - set PYTHON=<path to Python 3.8 or later> + set PYTHON=<path to Python 3.10 or later> set SPHINXBUILD=<path to sphinx-build.exe> set PATH=<path to Git (git.exe)>;%PATH% @@ -66,19 +66,13 @@ Tools\msi\get_externals.bat. (Note that this is in addition to the similarly named file in PCbuild.) One of the dependencies used in builds is WiX, a toolset that lets developers -create installers for Windows Installer, the Windows installation engine. WiX -has a dependency on the Microsoft .NET Framework Version 3.5 (which may not be -configured on recent versions of Windows, such as Windows 10). If you are -building on a recent Windows version, use the Control Panel (Programs | Programs -and Features | Turn Windows Features on or off) and ensure that the entry -".NET Framework 3.5 (includes .NET 2.0 and 3.0)" is enabled. - -For Python 3.11.x and above, enable "Microsoft .NET Framework 4.8 Advanced Services" -instead of "Microsoft .NET Framework Version 3.5" available for Windows 10 and above. -Also make sure "MSVC v143 - VS 2022 C++ ARM64 build tools" are selected under -"Desktop Development with C++" in "Visual Studio installer" even if you are not -building on ARM64 along with other x64 related v143 build tools. This is because for -3.11.x and above we have upgraded to Wix-3.14. +create installers for Windows Installer, the Windows installation engine. + +Additionally, make sure "MSVC v14x - VS 20xx C++ ARM64 build tools" are +selected under "Desktop Development with C++" in "Visual Studio installer", +even if you are not building on ARM64. This is required because we have +upgraded to WiX-3.14, which requires these tools for Python 3.11 and later +versions. For testing, the installer should be built with the Tools/msi/build.bat script: @@ -107,7 +101,7 @@ be available alongside. This takes longer, but is easier to share. For an official release, the installer should be built with the Tools/msi/buildrelease.bat script: - set PYTHON=<path to Python 2.7 or 3.4> + set PYTHON=<path to Python 3.10 or later> set SPHINXBUILD=<path to sphinx-build.exe> set PATH=<path to Git (git.exe)>;%PATH% diff --git a/Tools/msi/bundle/bootstrap/pythonba.vcxproj b/Tools/msi/bundle/bootstrap/pythonba.vcxproj index bb383bf..3970e85 100644 --- a/Tools/msi/bundle/bootstrap/pythonba.vcxproj +++ b/Tools/msi/bundle/bootstrap/pythonba.vcxproj @@ -24,7 +24,6 @@ <PlatformToolset Condition="'$(PlatformToolset)' == '' and '$(VisualStudioVersion)' == '17.0'">v143</PlatformToolset> <PlatformToolset Condition="'$(PlatformToolset)' == '' and '$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset> <PlatformToolset Condition="'$(PlatformToolset)' == '' and ('$(MSBuildToolsVersion)' == '15.0' or '$(VisualStudioVersion)' == '15.0')">v141</PlatformToolset> - <PlatformToolset Condition="'$(PlatformToolset)' == ''">v140</PlatformToolset> <ProjectGuid>{7A09B132-B3EE-499B-A700-A4B2157FEA3D}</ProjectGuid> <TargetName>PythonBA</TargetName> </PropertyGroup> @@ -51,8 +50,6 @@ <Link> <AdditionalDependencies>comctl32.lib;gdiplus.lib;msimg32.lib;shlwapi.lib;wininet.lib;dutil.lib;balutil.lib;version.lib;uxtheme.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalLibraryDirectories Condition="$(PlatformToolset.StartsWith(`v14`))">$(WixInstallPath)sdk\vs2017\lib\x86</AdditionalLibraryDirectories> - <AdditionalLibraryDirectories Condition="'$(PlatformToolset)' == 'v140'">$(WixInstallPath)sdk\vs2015\lib\x86</AdditionalLibraryDirectories> - <AdditionalLibraryDirectories Condition="'$(PlatformToolset)' == 'v120'">$(WixInstallPath)sdk\vs2013\lib\x86</AdditionalLibraryDirectories> <ModuleDefinitionFile>pythonba.def</ModuleDefinitionFile> <GenerateDebugInformation Condition="'$(Configuration)'=='Debug'">true</GenerateDebugInformation> </Link> |