File tree 6 files changed +24
-12
lines changed
6 files changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ if "%platf%"=="x64" (
105
105
)
106
106
)
107
107
108
+ if not exist " %HG% " where hg > " %TEMP% \hg.loc" 2 > nul && set /P HG = < " %TEMP% \hg.loc" & del " %TEMP% \hg.loc"
109
+ if not exist " %HG% " echo Cannot find Mercurial on PATH && exit /B 1
110
+
108
111
rem Setup the environment
109
112
call " %dir% env.bat" %vs_platf% > nul
110
113
@@ -142,6 +145,7 @@ msbuild "%dir%pcbuild.proj" /t:%target% %parallel% %verbose%^
142
145
/p:IncludeExternals=%IncludeExternals% ^
143
146
/p:IncludeSSL=%IncludeSSL% /p:IncludeTkinter=%IncludeTkinter% ^
144
147
/p:UseTestMarker=%UseTestMarker% ^
148
+ /p:HG=" %HG% " ^
145
149
%1 %2 %3 %4 %5 %6 %7 %8 %9
146
150
147
151
@ echo off
Original file line number Diff line number Diff line change 399
399
<ImportGroup Label =" ExtensionTargets" >
400
400
</ImportGroup >
401
401
<Target Name =" _GetBuildInfo" BeforeTargets =" PrepareForBuild" >
402
- <Exec Command =" hg id -b > " $(IntDir)hgbranch.txt" " ContinueOnError =" true" />
403
- <Exec Command =" hg id -i > " $(IntDir)hgversion.txt" " ContinueOnError =" true" />
404
- <Exec Command =" hg id -t > " $(IntDir)hgtag.txt" " ContinueOnError =" true" />
402
+ <PropertyGroup >
403
+ <HG Condition =" $(HG) == ''" >hg</HG >
404
+ <_HG >$(HG)</_HG >
405
+ <_HG Condition =" $(HG.Contains(` `))" >"$(HG)"</_HG >
406
+ </PropertyGroup >
407
+ <Message Text =" Getting build info from $(_HG)" Importance =" high" />
408
+ <Exec Command =" $(_HG) id -b > " $(IntDir)hgbranch.txt" " ContinueOnError =" true" />
409
+ <Exec Command =" $(_HG) id -i > " $(IntDir)hgversion.txt" " ContinueOnError =" true" />
410
+ <Exec Command =" $(_HG) id -t > " $(IntDir)hgtag.txt" " ContinueOnError =" true" />
405
411
<PropertyGroup >
406
412
<HgBranch Condition =" Exists('$(IntDir)hgbranch.txt')" >$([System.IO.File]::ReadAllText('$(IntDir)hgbranch.txt').Trim())</HgBranch >
407
413
<HgVersion Condition =" Exists('$(IntDir)hgversion.txt')" >$([System.IO.File]::ReadAllText('$(IntDir)hgversion.txt').Trim())</HgVersion >
Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ if "%1" NEQ "" echo Invalid option: "%1" && exit /B 1
64
64
65
65
if not defined BUILDX86 if not defined BUILDX64 (set BUILDX86=1) && (set BUILDX64=1)
66
66
67
+ if not exist " %HG% " where hg > " %TEMP% \hg.loc" 2 > nul && set /P HG = < " %TEMP% \hg.loc" & del " %TEMP% \hg.loc"
68
+ if not exist " %HG% " echo Cannot find Mercurial on PATH && exit /B 1
69
+
67
70
call " %D% get_externals.bat"
68
71
69
72
:builddoc
@@ -77,8 +80,6 @@ call "%D%..\..\doc\make.bat" htmlhelp
77
80
if errorlevel 1 goto :eof
78
81
:skipdoc
79
82
80
- where hg /q || echo Cannot find Mercurial on PATH && exit /B 1
81
-
82
83
where dlltool /q && goto skipdlltoolsearch
83
84
set _DLLTOOL_PATH =
84
85
where /R " %EXTERNALS% \" dlltool > " %TEMP% \dlltool.loc" 2 > nul && set /P _DLLTOOL_PATH = < " %TEMP% \dlltool.loc" & del " %TEMP% \dlltool.loc"
@@ -187,7 +188,7 @@ msbuild "%D%bundle\releaseweb.wixproj" /t:Rebuild /p:Platform=%1 %BUILDOPTS% %CE
187
188
if errorlevel 1 exit /B
188
189
189
190
if defined BUILDZIP (
190
- msbuild " %D% make_zip.proj" /t:Build %BUILDOPTS% %CERTOPTS%
191
+ msbuild " %D% make_zip.proj" /t:Build %BUILDOPTS% %CERTOPTS% /p:OutputPath= " %BUILD% en-us "
191
192
if errorlevel 1 exit /B
192
193
)
193
194
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<Wix xmlns =" http://schemas.microsoft.com/wix/2006/wi"
3
- xmlns : bal =" http://schemas.microsoft.com/wix/BalExtension" >
3
+ xmlns : bal =" http://schemas.microsoft.com/wix/BalExtension"
4
+ xmlns : dep =" http://schemas.microsoft.com/wix/DependencyExtension" >
4
5
<Bundle Name =" !(loc.FullProductName)"
5
6
UpgradeCode =" $(var.CoreUpgradeCode)"
6
7
Version =" $(var.Version)"
7
8
IconSourceFile =" bundle.ico"
8
9
Manufacturer =" !(loc.Manufacturer)"
9
10
AboutUrl =" http://www.python.org/"
10
11
DisableModify =" button"
11
- Compressed =" no" >
12
+ Compressed =" no"
13
+ dep : ProviderKey =" CPython-$(var.MajorVersionNumber).$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)" >
12
14
<BootstrapperApplication Id =" PythonBA" SourceFile =" $(var.BootstrapApp)" >
13
15
<Payload Compressed =' yes' SourceFile =' Default.thm' />
14
16
<Payload Compressed =' yes' SourceFile =' Default.wxl' />
Original file line number Diff line number Diff line change 13
13
<SignOutput >false</SignOutput >
14
14
<TargetName >python-$(PythonVersion)-embed-$(ArchName)</TargetName >
15
15
<TargetExt >.zip</TargetExt >
16
- <TargetPath >$(OutputPath)\en-us\ $(TargetName)$(TargetExt)</TargetPath >
16
+ <TargetPath >$(OutputPath)\$(TargetName)$(TargetExt)</TargetPath >
17
17
<CleanCommand >rmdir /q/s "$(IntermediateOutputPath)\zip_$(ArchName)"</CleanCommand >
18
18
<Arguments >"$(PythonExe)" "$(MSBuildThisFileDirectory)\make_zip.py"</Arguments >
19
- <Arguments >$(Arguments) -e -o "$(TargetPath)" -t "$(IntermediateOutputPath)\zip_$(ArchName)" -b "$(OutDir .TrimEnd('\'))"</Arguments >
19
+ <Arguments >$(Arguments) -e -o "$(TargetPath)" -t "$(IntermediateOutputPath)\zip_$(ArchName)" -b "$(BuildPath .TrimEnd('\'))"</Arguments >
20
20
<Environment >set DOC_FILENAME=python$(PythonVersion).chm
21
21
set VCREDIST_PATH=$(VS140COMNTOOLS)\..\..\VC\redist\$(Platform)\Microsoft.VC140.CRT</Environment >
22
22
</PropertyGroup >
Original file line number Diff line number Diff line change 18
18
<SignOutput >false</SignOutput >
19
19
<TargetName >$(OutputName).$(NuspecVersion)</TargetName >
20
20
<TargetExt >.nupkg</TargetExt >
21
- <TargetPath >$(OutputPath)\$(TargetName)$(TargetExt)</TargetPath >
22
21
<IntermediateOutputPath >$(IntermediateOutputPath)\nuget_$(ArchName)</IntermediateOutputPath >
23
22
24
23
<CleanCommand >rmdir /q/s "$(IntermediateOutputPath)"</CleanCommand >
25
24
26
25
<PythonArguments >"$(PythonExe)" "$(MSBuildThisFileDirectory)\..\msi\make_zip.py"</PythonArguments >
27
- <PythonArguments >$(PythonArguments) -t "$(IntermediateOutputPath)" -b "$(OutDir .TrimEnd('\'))"</PythonArguments >
26
+ <PythonArguments >$(PythonArguments) -t "$(IntermediateOutputPath)" -b "$(BuildPath .TrimEnd('\'))"</PythonArguments >
28
27
29
28
<PipArguments >"$(IntermediateOutputPath)\python.exe" -B -c "import sys; sys.path.append(r'$(PySourcePath)\Lib'); import ensurepip; ensurepip._main()"</PipArguments >
30
29
<PackageArguments Condition =" $(Packages) != ''" >"$(IntermediateOutputPath)\python.exe" -B -m pip install -U $(Packages)</PackageArguments >
You can’t perform that action at this time.
0 commit comments