Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
79da388a
Unverified
Kaydet (Commit)
79da388a
authored
Mar 31, 2019
tarafından
Steve Dower
Kaydeden (comit)
GitHub
Mar 31, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-36085: Add installer check for KB2533625 (GH-12636)
üst
ac19d965
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
11 deletions
+34
-11
3.8.rst
Doc/whatsnew/3.8.rst
+3
-1
build.bat
Tools/msi/build.bat
+5
-3
PythonBootstrapperApplication.cpp
Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
+26
-4
lib_files.wxs
Tools/msi/lib/lib_files.wxs
+0
-3
No files found.
Doc/whatsnew/3.8.rst
Dosyayı görüntüle @
79da388a
...
@@ -754,7 +754,9 @@ Changes in the Python API
...
@@ -754,7 +754,9 @@ Changes in the Python API
used, and modifications to these will no longer have any effect on normal DLL
used, and modifications to these will no longer have any effect on normal DLL
resolution. If your application relies on these mechanisms, you should check
resolution. If your application relies on these mechanisms, you should check
for :func:`~os.add_dll_directory` and if it exists, use it to add your DLLs
for :func:`~os.add_dll_directory` and if it exists, use it to add your DLLs
directory while loading your library.
directory while loading your library. Note that Windows 7 users will need to
ensure that Windows Update KB2533625 has been installed (this is also verified
by the installer).
(See :issue:`36085`.)
(See :issue:`36085`.)
...
...
Tools/msi/build.bat
Dosyayı görüntüle @
79da388a
...
@@ -6,7 +6,7 @@ set PCBUILD=%D%..\..\PCbuild\
...
@@ -6,7 +6,7 @@ set PCBUILD=%D%..\..\PCbuild\
set BUILDX86=
set BUILDX86=
set BUILDX64=
set BUILDX64=
set BUILDDOC=
set BUILDDOC=
set BUILDTEST=
--test-marker
set BUILDTEST=
set BUILDPACK=
set BUILDPACK=
set REBUILD=
set REBUILD=
...
@@ -16,6 +16,7 @@ if "%~1" EQU "-x86" (set BUILDX86=1) && shift && goto CheckOpts
...
@@ -16,6 +16,7 @@ if "%~1" EQU "-x86" (set BUILDX86=1) && shift && goto CheckOpts
if "%~1" EQU "-x64" (set BUILDX64=1) && shift && goto CheckOpts
if "%~1" EQU "-x64" (set BUILDX64=1) && shift && goto CheckOpts
if "%~1" EQU "--doc" (set BUILDDOC=1) && shift && goto CheckOpts
if "%~1" EQU "--doc" (set BUILDDOC=1) && shift && goto CheckOpts
if "%~1" EQU "--no-test-marker" (set BUILDTEST=) && shift && goto CheckOpts
if "%~1" EQU "--no-test-marker" (set BUILDTEST=) && shift && goto CheckOpts
if "%~1" EQU "--test-marker" (set BUILDTEST=--test-marker) && shift && goto CheckOpts
if "%~1" EQU "--pack" (set BUILDPACK=1) && shift && goto CheckOpts
if "%~1" EQU "--pack" (set BUILDPACK=1) && shift && goto CheckOpts
if "%~1" EQU "-r" (set REBUILD=-r) && shift && goto CheckOpts
if "%~1" EQU "-r" (set REBUILD=-r) && shift && goto CheckOpts
...
@@ -69,11 +70,12 @@ if defined BUILDX64 (
...
@@ -69,11 +70,12 @@ if defined BUILDX64 (
exit /B 0
exit /B 0
:Help
:Help
echo build.bat [-x86] [-x64] [--doc] [-h] [--
no-
test-marker] [--pack] [-r]
echo build.bat [-x86] [-x64] [--doc] [-h] [--test-marker] [--pack] [-r]
echo.
echo.
echo -x86 Build x86 installers
echo -x86 Build x86 installers
echo -x64 Build x64 installers
echo -x64 Build x64 installers
echo --doc Build CHM documentation
echo --doc Build CHM documentation
echo --no-test-marker Build without test markers
echo --test-marker Build with test markers
echo --no-test-marker Build without test markers (default)
echo --pack Embed core MSIs into installer
echo --pack Embed core MSIs into installer
echo -r Rebuild rather than incremental build
echo -r Rebuild rather than incremental build
Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
Dosyayı görüntüle @
79da388a
...
@@ -2989,9 +2989,20 @@ private:
...
@@ -2989,9 +2989,20 @@ private:
LOC_STRING
*
pLocString
=
nullptr
;
LOC_STRING
*
pLocString
=
nullptr
;
if
(
IsWindowsServer
())
{
if
(
IsWindowsServer
())
{
if
(
IsWindowsVersionOrGreater
(
6
,
1
,
1
))
{
if
(
IsWindowsVersionOrGreater
(
6
,
2
,
0
))
{
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_STANDARD
,
"Target OS is Windows Server 20
08 R
2 or later"
);
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_STANDARD
,
"Target OS is Windows Server 20
1
2 or later"
);
return
;
return
;
}
else
if
(
IsWindowsVersionOrGreater
(
6
,
1
,
1
))
{
HMODULE
hKernel32
=
GetModuleHandleW
(
L"kernel32"
);
if
(
hKernel32
&&
!
GetProcAddress
(
hKernel32
,
"AddDllDirectory"
))
{
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_ERROR
,
"Detected Windows Server 2008 R2 without KB2533625"
);
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_ERROR
,
"KB2533625 update is required to continue."
);
/* The "MissingSP1" error also specifies updates are required */
LocGetString
(
_wixLoc
,
L"#(loc.FailureWS2K8R2MissingSP1)"
,
&
pLocString
);
}
else
{
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_STANDARD
,
"Target OS is Windows Server 2008 R2 or later"
);
return
;
}
}
else
if
(
IsWindowsVersionOrGreater
(
6
,
1
,
0
))
{
}
else
if
(
IsWindowsVersionOrGreater
(
6
,
1
,
0
))
{
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_ERROR
,
"Detected Windows Server 2008 R2"
);
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_ERROR
,
"Detected Windows Server 2008 R2"
);
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_ERROR
,
"Service Pack 1 is required to continue installation"
);
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_ERROR
,
"Service Pack 1 is required to continue installation"
);
...
@@ -3009,9 +3020,20 @@ private:
...
@@ -3009,9 +3020,20 @@ private:
LocGetString
(
_wixLoc
,
L"#(loc.FailureWS2K3OrEarlier)"
,
&
pLocString
);
LocGetString
(
_wixLoc
,
L"#(loc.FailureWS2K3OrEarlier)"
,
&
pLocString
);
}
}
}
else
{
}
else
{
if
(
IsWindows
7SP1
OrGreater
())
{
if
(
IsWindows
8
OrGreater
())
{
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_STANDARD
,
"Target OS is Windows
7 SP1
or later"
);
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_STANDARD
,
"Target OS is Windows
8
or later"
);
return
;
return
;
}
else
if
(
IsWindows7SP1OrGreater
())
{
HMODULE
hKernel32
=
GetModuleHandleW
(
L"kernel32"
);
if
(
hKernel32
&&
!
GetProcAddress
(
hKernel32
,
"AddDllDirectory"
))
{
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_ERROR
,
"Detected Windows 7 SP1 without KB2533625"
);
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_ERROR
,
"KB2533625 update is required to continue."
);
/* The "MissingSP1" error also specifies updates are required */
LocGetString
(
_wixLoc
,
L"#(loc.FailureWin7MissingSP1)"
,
&
pLocString
);
}
else
{
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_STANDARD
,
"Target OS is Windows 7 SP1 or later"
);
return
;
}
}
else
if
(
IsWindows7OrGreater
())
{
}
else
if
(
IsWindows7OrGreater
())
{
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_ERROR
,
"Detected Windows 7 RTM"
);
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_ERROR
,
"Detected Windows 7 RTM"
);
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_ERROR
,
"Service Pack 1 is required to continue installation"
);
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_ERROR
,
"Service Pack 1 is required to continue installation"
);
...
...
Tools/msi/lib/lib_files.wxs
Dosyayı görüntüle @
79da388a
...
@@ -62,9 +62,6 @@
...
@@ -62,9 +62,6 @@
<Component
Id=
"libssl.pdb"
Directory=
"DLLs"
Guid=
"*"
>
<Component
Id=
"libssl.pdb"
Directory=
"DLLs"
Guid=
"*"
>
<File
Name=
"libssl$(var.ssltag).pdb"
KeyPath=
"yes"
/>
<File
Name=
"libssl$(var.ssltag).pdb"
KeyPath=
"yes"
/>
</Component>
</Component>
<Component
Id=
"libffi.pdb"
Directory=
"DLLs"
Guid=
"*"
>
<File
Name=
"libffi-7.pdb"
KeyPath=
"yes"
/>
</Component>
<Component
Id=
"venvlauncher.pdb"
Directory=
"Lib_venv_scripts_nt__pdbs"
Guid=
"*"
>
<Component
Id=
"venvlauncher.pdb"
Directory=
"Lib_venv_scripts_nt__pdbs"
Guid=
"*"
>
<File
Name=
"python.pdb"
Source=
"venvlauncher.pdb"
KeyPath=
"yes"
/>
<File
Name=
"python.pdb"
Source=
"venvlauncher.pdb"
KeyPath=
"yes"
/>
</Component>
</Component>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment