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
102f72cf
Kaydet (Commit)
102f72cf
authored
Mar 25, 2015
tarafından
Steve Dower
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adds pydoc shortcut, Edit with IDLE menu, moves redist folder into externals and fixes test script.
üst
fef9c1b3
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
94 additions
and
31 deletions
+94
-31
PythonBootstrapperApplication.cpp
Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
+2
-0
common.wxs
Tools/msi/common.wxs
+1
-1
doc_en-US.wxl_template
Tools/msi/doc/doc_en-US.wxl_template
+1
-1
msi.props
Tools/msi/msi.props
+7
-6
README.txt
Tools/msi/redist/README.txt
+0
-15
tcltk.wxs
Tools/msi/tcltk/tcltk.wxs
+61
-4
tcltk_en-US.wxl_template
Tools/msi/tcltk/tcltk_en-US.wxl_template
+4
-0
testrelease.bat
Tools/msi/testrelease.bat
+18
-4
No files found.
Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
Dosyayı görüntüle @
102f72cf
...
@@ -742,6 +742,8 @@ public: // IBootstrapperApplication
...
@@ -742,6 +742,8 @@ public: // IBootstrapperApplication
}
else
{
}
else
{
*
pRequestedState
=
BOOTSTRAPPER_FEATURE_STATE_ABSENT
;
*
pRequestedState
=
BOOTSTRAPPER_FEATURE_STATE_ABSENT
;
}
}
}
else
{
*
pRequestedState
=
BOOTSTRAPPER_FEATURE_STATE_LOCAL
;
}
}
return
CheckCanceled
()
?
IDCANCEL
:
IDNOACTION
;
return
CheckCanceled
()
?
IDCANCEL
:
IDNOACTION
;
}
}
...
...
Tools/msi/common.wxs
Dosyayı görüntüle @
102f72cf
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<?if $(var.UpgradeCode)!=$(var.CoreUpgradeCode) ?>
<?if $(var.UpgradeCode)!=$(var.CoreUpgradeCode) ?>
<Upgrade
Id=
"$(var.CoreUpgradeCode)"
>
<Upgrade
Id=
"$(var.CoreUpgradeCode)"
>
<UpgradeVersion
Property=
"MISSING_CORE"
Minimum=
"$(var.Version)"
Maximum=
"$(var.Version)
"
OnlyDetect=
"yes"
/>
<UpgradeVersion
Property=
"MISSING_CORE"
Minimum=
"$(var.Version)"
IncludeMinimum=
"yes"
Maximum=
"$(var.Version)"
IncludeMaximum=
"yes
"
OnlyDetect=
"yes"
/>
</Upgrade>
</Upgrade>
<?endif ?>
<?endif ?>
...
...
Tools/msi/doc/doc_en-US.wxl_template
Dosyayı görüntüle @
102f72cf
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
<WixLocalization
Culture=
"en-us"
xmlns=
"http://schemas.microsoft.com/wix/2006/localization"
>
<WixLocalization
Culture=
"en-us"
xmlns=
"http://schemas.microsoft.com/wix/2006/localization"
>
<String
Id=
"ShortDescriptor"
>
doc
</String>
<String
Id=
"ShortDescriptor"
>
doc
</String>
<String
Id=
"Descriptor"
>
Documentation
</String>
<String
Id=
"Descriptor"
>
Documentation
</String>
<String
Id=
"ShortcutName"
>
Python {{ShortVersion}}
{{Bitness}} Manuals
</String>
<String
Id=
"ShortcutName"
>
Python {{ShortVersion}}
Manuals ({{Bitness}})
</String>
<String
Id=
"ShortcutDescription"
>
View the !(loc.ProductName) documentation.
</String>
<String
Id=
"ShortcutDescription"
>
View the !(loc.ProductName) documentation.
</String>
</WixLocalization>
</WixLocalization>
Tools/msi/msi.props
Dosyayı görüntüle @
102f72cf
...
@@ -49,9 +49,9 @@
...
@@ -49,9 +49,9 @@
<OutputPath
Condition=
"!HasTrailingSlash($(OutputPath))"
>
$(OutputPath)\
</OutputPath>
<OutputPath
Condition=
"!HasTrailingSlash($(OutputPath))"
>
$(OutputPath)\
</OutputPath>
<OutDir>
$(OutputPath)
</OutDir>
<OutDir>
$(OutputPath)
</OutDir>
<ReuseCabinetCache>
true
</ReuseCabinetCache>
<ReuseCabinetCache>
true
</ReuseCabinetCache>
<CRTRedist
Condition=
"
"
>
$([System.IO.Path]::GetFullPath(`$(VS140COMNTOOLS)\..\..\VC\redist\$(Platform)\Microsoft.VC140.CRT`))
</CRTRedist>
<CRTRedist
Condition=
"
'$(CRTRedist)' == ''"
>
$(ExternalsDir)\redist
</CRTRedist>
<CRTRedist
Condition=
"
'$(CRTRedist)' != '' and !Exists($(CRTRedist))"
>
$(MSBuildThisFileDirectory)\redist\$(Platform)
</CRTRedist>
<CRTRedist
Condition=
"
!Exists($(CRTRedist))"
>
</CRTRedist>
<
CRTRedist
Condition=
"'$(CRTRedist)' != '' and !Exists($(CRTRedist))"
></CRTRedist
>
<
DocFilename>
python$(MajorVersionNumber)$(MinorVersionNumber)$(MicroVersionNumber)$(ReleaseLevelName).chm
</DocFilename
>
<RevisionNumber>
$(ReleaseLevelNumber)
</RevisionNumber>
<RevisionNumber>
$(ReleaseLevelNumber)
</RevisionNumber>
<RevisionNumber
Condition=
"!$(BuildForRelease)"
>
$([System.Math]::Floor($([System.DateTime]::Now.Subtract($([System.DateTime]::new(2001, 1, 1))).TotalDays)))
</RevisionNumber>
<RevisionNumber
Condition=
"!$(BuildForRelease)"
>
$([System.Math]::Floor($([System.DateTime]::Now.Subtract($([System.DateTime]::new(2001, 1, 1))).TotalDays)))
</RevisionNumber>
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
MinorVersionNumber=$(MinorVersionNumber);
MinorVersionNumber=$(MinorVersionNumber);
UpgradeMinimumVersion=$(MajorVersionNumber).$(MinorVersionNumber).0.0;
UpgradeMinimumVersion=$(MajorVersionNumber).$(MinorVersionNumber).0.0;
NextMajorVersionNumber=$(MajorVersionNumber).$([msbuild]::Add($(MinorVersionNumber), 1)).0.0;
NextMajorVersionNumber=$(MajorVersionNumber).$([msbuild]::Add($(MinorVersionNumber), 1)).0.0;
Bitness=$(Bitness);
PyDebugExt=$(PyDebugExt);
PyDebugExt=$(PyDebugExt);
</DefineConstants>
</DefineConstants>
<DefineConstants
Condition=
"'$(CRTRedist)' != ''"
>
<DefineConstants
Condition=
"'$(CRTRedist)' != ''"
>
...
@@ -109,11 +110,11 @@
...
@@ -109,11 +110,11 @@
<BindName>
tcltk
</BindName>
<BindName>
tcltk
</BindName>
</LinkerBindInputPaths>
</LinkerBindInputPaths>
<LinkerBindInputPaths
Include=
"$(CRTRedist)"
Condition=
"'$(CRTRedist)' != ''"
>
<LinkerBindInputPaths
Include=
"$(CRTRedist)"
Condition=
"'$(CRTRedist)' != ''"
>
<BindName>
crt
</BindName>
</LinkerBindInputPaths>
<LinkerBindInputPaths
Include=
"$(MSBuildThisFileDirectory)\redist"
>
<BindName>
redist
</BindName>
<BindName>
redist
</BindName>
</LinkerBindInputPaths>
</LinkerBindInputPaths>
<LinkerBindInputPaths
Include=
"$(CRTRedist)\$(Platform)"
Condition=
"'$(CRTRedist)' != ''"
>
<BindName>
crt
</BindName>
</LinkerBindInputPaths>
</ItemGroup>
</ItemGroup>
<Target
Name=
"_ValidateMsiProps"
BeforeTargets=
"PrepareForBuild"
>
<Target
Name=
"_ValidateMsiProps"
BeforeTargets=
"PrepareForBuild"
>
...
...
Tools/msi/redist/README.txt
deleted
100644 → 0
Dosyayı görüntüle @
fef9c1b3
This folder is intentianally left empty in the repository.
The following dependencies may be copied here if they cannot be detected
automatically by the build scripts:
redist\Windows6.0-KB2999226-x64.msu
redist\Windows6.0-KB2999226-x86.msu
redist\Windows6.1-KB2999226-x64.msu
redist\Windows6.1-KB2999226-x86.msu
redist\Windows8.1-KB2999226-x64.msu
redist\Windows8.1-KB2999226-x86.msu
redist\Windows8-RT-KB2999226-x64.msu
redist\Windows8-RT-KB2999226-x86.msu
redist\x64\vcruntime140.dll
redist\x86\vcruntime140.dll
Tools/msi/tcltk/tcltk.wxs
Dosyayı görüntüle @
102f72cf
...
@@ -8,18 +8,24 @@
...
@@ -8,18 +8,24 @@
<PropertyRef
Id=
"REGISTRYKEY"
/>
<PropertyRef
Id=
"REGISTRYKEY"
/>
<Property
Id=
"PYTHON_EXE"
Secure=
"yes"
>
<Property
Id=
"PYTHON_EXE"
Secure=
"yes"
>
<ComponentSearch
Id=
"PythonExe"
Guid=
"$(var.PythonwExeComponentGuid)"
>
<ComponentSearch
Id=
"PythonExe"
Guid=
"$(var.PythonExeComponentGuid)"
>
<FileSearch
Name=
"python.exe"
/>
</ComponentSearch>
</Property>
<Property
Id=
"PYTHONW_EXE"
Secure=
"yes"
>
<ComponentSearch
Id=
"PythonwExe"
Guid=
"$(var.PythonwExeComponentGuid)"
>
<FileSearch
Name=
"pythonw.exe"
/>
<FileSearch
Name=
"pythonw.exe"
/>
</ComponentSearch>
</ComponentSearch>
</Property>
</Property>
<Condition
Message=
"!(loc.NoPython)"
>
PYTHON_EXE
</Condition>
<Condition
Message=
"!(loc.NoPython)"
>
PYTHON_EXE
and PYTHONW_EXE
</Condition>
<Feature
Id=
"DefaultFeature"
AllowAdvertise=
"no"
Title=
"!(loc.Title)"
Description=
"!(loc.Description)"
>
<Feature
Id=
"DefaultFeature"
AllowAdvertise=
"no"
Title=
"!(loc.Title)"
Description=
"!(loc.Description)"
>
<ComponentGroupRef
Id=
"tkinter_extension"
/>
<ComponentGroupRef
Id=
"tkinter_extension"
/>
<ComponentGroupRef
Id=
"tcltk_dlls"
/>
<ComponentGroupRef
Id=
"tcltk_dlls"
/>
<ComponentGroupRef
Id=
"tcltk_lib"
/>
<ComponentGroupRef
Id=
"tcltk_lib"
/>
<ComponentGroupRef
Id=
"tkinter_lib"
/>
<ComponentGroupRef
Id=
"tkinter_lib"
Primary=
"yes"
/>
<Component
Id=
"idle_shortcut"
Directory=
"MenuDir"
>
<Component
Id=
"idle_shortcut"
Directory=
"MenuDir"
>
<RegistryValue
KeyPath=
"yes"
Root=
"HKMU"
Key=
"[REGISTRYKEY]\Idle"
Type=
"string"
Value=
"[#Lib_idlelib_idle.pyw]"
/>
<RegistryValue
KeyPath=
"yes"
Root=
"HKMU"
Key=
"[REGISTRYKEY]\Idle"
Type=
"string"
Value=
"[#Lib_idlelib_idle.pyw]"
/>
...
@@ -29,11 +35,62 @@
...
@@ -29,11 +35,62 @@
Directory=
"MenuDir"
Directory=
"MenuDir"
Name=
"!(loc.ShortcutName)"
Name=
"!(loc.ShortcutName)"
Description=
"!(loc.ShortcutDescription)"
Description=
"!(loc.ShortcutDescription)"
Target=
"[PYTHON_EXE]"
Target=
"[PYTHON
W
_EXE]"
Arguments=
'"[#Lib_idlelib_idle.pyw]"'
Arguments=
'"[#Lib_idlelib_idle.pyw]"'
Icon=
"idle.exe"
>
Icon=
"idle.exe"
>
<Icon
Id=
"idle.exe"
SourceFile=
"!(bindpath.src)Lib\idlelib\Icons\idle.ico"
/>
<Icon
Id=
"idle.exe"
SourceFile=
"!(bindpath.src)Lib\idlelib\Icons\idle.ico"
/>
</Shortcut>
</Shortcut>
<Shortcut
Id=
"pydoc.py"
Target=
"[PYTHON_EXE]"
Arguments=
'-m pydoc -b'
Name=
"!(loc.PyDocShortcutName)"
Description=
"!(loc.PyDocShortcutDescription)"
Icon=
"idle.exe"
/>
</Component>
</Feature>
<Feature
Id=
"AssociateFiles"
AllowAdvertise=
"no"
Title=
"!(loc.Title)"
Description=
"!(loc.Description)"
>
<ComponentGroupRef
Id=
"tkinter_lib"
/>
<!-- We fix the guid of the Subcommands key so that it is correctly reference counted -->
<Component
Id=
"assoc_subcommands"
Directory=
"InstallDirectory"
Guid=
"{57D47B4C-96E6-40A0-A958-57083D74423F}"
>
<Condition>
VersionNT > 600
</Condition>
<RegistryValue
Root=
"HKCR"
Key=
"$(var.TestPrefix)Python.File\Shell\editwithidle"
Name=
"MUIVerb"
Value=
"!(loc.EditMenu)"
Type=
"string"
KeyPath=
"yes"
/>
<RegistryValue
Root=
"HKCR"
Key=
"$(var.TestPrefix)Python.File\Shell\editwithidle"
Name=
"Subcommands"
Value=
""
Type=
"string"
KeyPath=
"no"
/>
</Component>
<Component
Id=
"assoc_subcommands_nocon"
Directory=
"InstallDirectory"
Guid=
"{07061D85-9151-4FC4-BB78-13628020D026}"
>
<Condition>
VersionNT > 600
</Condition>
<RegistryValue
Root=
"HKCR"
Key=
"$(var.TestPrefix)Python.NoConFile\Shell\editwithidle"
Name=
"MUIVerb"
Value=
"!(loc.EditMenu)"
Type=
"string"
KeyPath=
"yes"
/>
<RegistryValue
Root=
"HKCR"
Key=
"$(var.TestPrefix)Python.NoConFile\Shell\editwithidle"
Name=
"Subcommands"
Value=
""
Type=
"string"
KeyPath=
"no"
/>
</Component>
<Component
Id=
"assoc_editwithidle"
Directory=
"InstallDirectory"
>
<Condition>
VersionNT > 600
</Condition>
<RegistryKey
Root=
"HKCR"
Key=
"$(var.TestPrefix)Python.File\Shell\editwithidle\shell\edit$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"
>
<RegistryValue
Name=
"MUIVerb"
Value=
"!(loc.EditSubMenu)"
Type=
"string"
KeyPath=
"yes"
/>
<RegistryValue
Key=
"command"
Value=
'"[PYTHONW_EXE]" -m idlelib "%L" %*'
Type=
"string"
/>
</RegistryKey>
</Component>
<Component
Id=
"assoc_editwithidle_nocon"
Directory=
"InstallDirectory"
>
<Condition>
VersionNT > 600
</Condition>
<RegistryKey
Root=
"HKCR"
Key=
"$(var.TestPrefix)Python.NoConFile\Shell\editwithidle\shell\edit$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"
>
<RegistryValue
Name=
"MUIVerb"
Value=
"!(loc.EditSubMenu)"
Type=
"string"
KeyPath=
"yes"
/>
<RegistryValue
Key=
"command"
Value=
'"[PYTHONW_EXE]" -m idlelib "%L" %*'
Type=
"string"
/>
</RegistryKey>
</Component>
<Component
Id=
"assoc_editwithidle_vista"
Directory=
"InstallDirectory"
>
<Condition>
VersionNT = 600
</Condition>
<RegistryKey
Root=
"HKCR"
Key=
"$(var.TestPrefix)Python.File\Shell\editwithidle$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"
>
<RegistryValue
Value=
"!(loc.EditSubMenu)"
Type=
"string"
KeyPath=
"yes"
/>
<RegistryValue
Key=
"command"
Value=
'"[PYTHONW_EXE]" -m idlelib "%L" %*'
Type=
"string"
/>
</RegistryKey>
</Component>
<Component
Id=
"assoc_editwithidle_nocon_vista"
Directory=
"InstallDirectory"
>
<Condition>
VersionNT = 600
</Condition>
<RegistryKey
Root=
"HKCR"
Key=
"$(var.TestPrefix)Python.NoConFile\Shell\editwithidle$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"
>
<RegistryValue
Value=
"!(loc.EditSubMenu)"
Type=
"string"
KeyPath=
"yes"
/>
<RegistryValue
Key=
"command"
Value=
'"[PYTHONW_EXE]" -m idlelib "%L" %*'
Type=
"string"
/>
</RegistryKey>
</Component>
</Component>
</Feature>
</Feature>
</Product>
</Product>
...
...
Tools/msi/tcltk/tcltk_en-US.wxl_template
Dosyayı görüntüle @
102f72cf
...
@@ -5,4 +5,8 @@
...
@@ -5,4 +5,8 @@
<String
Id=
"NoPython"
>
No !(loc.ProductName) installation was detected.
</String>
<String
Id=
"NoPython"
>
No !(loc.ProductName) installation was detected.
</String>
<String
Id=
"ShortcutName"
>
IDLE (Python {{ShortVersion}} {{Bitness}})
</String>
<String
Id=
"ShortcutName"
>
IDLE (Python {{ShortVersion}} {{Bitness}})
</String>
<String
Id=
"ShortcutDescription"
>
Launches IDLE, the interactive environment for !(loc.ProductName).
</String>
<String
Id=
"ShortcutDescription"
>
Launches IDLE, the interactive environment for !(loc.ProductName).
</String>
<String
Id=
"PyDocShortcutName"
>
Python {{ShortVersion}} Module Docs ({{Bitness}})
</String>
<String
Id=
"PyDocShortcutDescription"
>
Start the !(loc.ProductName) documentation server.
</String>
<String
Id=
"EditMenu"
>
&
Edit with IDLE
</String>
<String
Id=
"EditSubMenu"
>
Edit with IDLE {{ShortVersion}} ({{Bitness}})
</String>
</WixLocalization>
</WixLocalization>
Tools/msi/testrelease.bat
Dosyayı görüntüle @
102f72cf
...
@@ -59,9 +59,26 @@ exit /B 0
...
@@ -59,9 +59,26 @@ exit /B 0
@echo Printing version
@echo Printing version
"%~2\Python\python.exe" -c "import sys; print(sys.version)" > "%~2\version.txt" 2>&1
"%~2\Python\python.exe" -c "import sys; print(sys.version)" > "%~2\version.txt" 2>&1
)
)
@if not errorlevel 1 (
@echo Capturing Start Menu
@dir /s/b "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" | findstr /ic:"python" > "%~2\startmenu.txt" 2>&1
@dir /s/b "%APPDATA%\Microsoft\Windows\Start Menu\Programs" | findstr /ic:"python" >> "%~2\startmenu.txt" 2>&1
@echo Capturing registry
@for /F "usebackq" %%f in (`reg query HKCR /s /f python /k`) do @(
echo %%f >> "%~2\hkcr.txt"
reg query "%%f" /s >> "%~2\hkcr.txt" 2>&1
)
@reg query HKCU\Software\Python /s > "%~2\hkcu.txt" 2>&1
@reg query HKLM\Software\Python /reg:32 /s > "%~2\hklm.txt" 2>&1
@reg query HKLM\Software\Python /reg:64 /s >> "%~2\hklm.txt" 2>&1
cmd /k exit 0
)
@if not errorlevel 1 (
@if not errorlevel 1 (
@echo Installing package
@echo Installing package
"%~2\Python\python.exe" -m pip install
azure
> "%~2\pip.txt" 2>&1
"%~2\Python\python.exe" -m pip install
"azure<0.10"
> "%~2\pip.txt" 2>&1
@if not errorlevel 1 (
@if not errorlevel 1 (
"%~2\Python\python.exe" -m pip uninstall -y azure python-dateutil six >> "%~2\pip.txt" 2>&1
"%~2\Python\python.exe" -m pip uninstall -y azure python-dateutil six >> "%~2\pip.txt" 2>&1
)
)
...
@@ -75,9 +92,6 @@ exit /B 0
...
@@ -75,9 +92,6 @@ exit /B 0
@set EXITCODE=%ERRORLEVEL%
@set EXITCODE=%ERRORLEVEL%
@for /d %%f in ("%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Python*") do @dir "%%~ff\*.lnk" /s/b > "%~2\startmenu.txt" 2>&1
@for /d %%f in ("%APPDATA%\Microsoft\Windows\Start Menu\Programs\Python*") do @dir "%%~ff\*.lnk" /s/b >> "%~2\startmenu.txt" 2>&1
@echo Result was %EXITCODE%
@echo Result was %EXITCODE%
@echo Removing %1
@echo Removing %1
"%~1" /passive /uninstall /log "%~2\uninstall\log.txt"
"%~1" /passive /uninstall /log "%~2\uninstall\log.txt"
...
...
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