Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fbc56909
Commit
fbc56909
authored
Nov 22, 2016
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #28573: Missing sys._mercurial info and other build issues.
parent
9ae67672
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj
+10
-3
Tools/msi/buildrelease.bat
Tools/msi/buildrelease.bat
+16
-3
No files found.
PCbuild/pythoncore.vcxproj
View file @
fbc56909
...
@@ -406,14 +406,21 @@
...
@@ -406,14 +406,21 @@
<ImportGroup
Label=
"ExtensionTargets"
>
<ImportGroup
Label=
"ExtensionTargets"
>
</ImportGroup>
</ImportGroup>
<Target
Name=
"_GetBuildInfo"
BeforeTargets=
"PrepareForBuild"
>
<Target
Name=
"_GetBuildInfo"
BeforeTargets=
"PrepareForBuild"
>
<Exec
Command=
"hg id -b > "$(IntDir)hgbranch.txt""
ContinueOnError=
"true"
/>
<PropertyGroup>
<Exec
Command=
"hg id -i > "$(IntDir)hgversion.txt""
ContinueOnError=
"true"
/>
<HG
Condition=
"$(HG) == ''"
>
hg
</HG>
<Exec
Command=
"hg id -t > "$(IntDir)hgtag.txt""
ContinueOnError=
"true"
/>
<_HG>
$(HG)
</_HG>
<_HG
Condition=
"$(HG.Contains(` `))"
>
"$(HG)"
</_HG>
</PropertyGroup>
<Message
Text=
"Getting build info from $(_HG)"
Importance=
"high"
/>
<Exec
Command=
"$(_HG) id -b > "$(IntDir)hgbranch.txt""
ContinueOnError=
"true"
/>
<Exec
Command=
"$(_HG) id -i > "$(IntDir)hgversion.txt""
ContinueOnError=
"true"
/>
<Exec
Command=
"$(_HG) id -t > "$(IntDir)hgtag.txt""
ContinueOnError=
"true"
/>
<PropertyGroup>
<PropertyGroup>
<HgBranch
Condition=
"Exists('$(IntDir)hgbranch.txt')"
>
$([System.IO.File]::ReadAllText('$(IntDir)hgbranch.txt').Trim())
</HgBranch>
<HgBranch
Condition=
"Exists('$(IntDir)hgbranch.txt')"
>
$([System.IO.File]::ReadAllText('$(IntDir)hgbranch.txt').Trim())
</HgBranch>
<HgVersion
Condition=
"Exists('$(IntDir)hgversion.txt')"
>
$([System.IO.File]::ReadAllText('$(IntDir)hgversion.txt').Trim())
</HgVersion>
<HgVersion
Condition=
"Exists('$(IntDir)hgversion.txt')"
>
$([System.IO.File]::ReadAllText('$(IntDir)hgversion.txt').Trim())
</HgVersion>
<HgTag
Condition=
"Exists('$(IntDir)hgtag.txt')"
>
$([System.IO.File]::ReadAllText('$(IntDir)hgtag.txt').Trim())
</HgTag>
<HgTag
Condition=
"Exists('$(IntDir)hgtag.txt')"
>
$([System.IO.File]::ReadAllText('$(IntDir)hgtag.txt').Trim())
</HgTag>
</PropertyGroup>
</PropertyGroup>
<Message
Text=
"Building $(HgTag):$(HgVersion) $(HgBranch)"
Importance=
"high"
/>
<ItemGroup>
<ItemGroup>
<ClCompile
Include=
"..\Modules\getbuildinfo.c"
>
<ClCompile
Include=
"..\Modules\getbuildinfo.c"
>
<PreprocessorDefinitions>
HGVERSION="$(HgVersion)";HGTAG="$(HgTag)";HGBRANCH="$(HgBranch)";%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<PreprocessorDefinitions>
HGVERSION="$(HgVersion)";HGTAG="$(HgTag)";HGBRANCH="$(HgBranch)";%(PreprocessorDefinitions)
</PreprocessorDefinitions>
...
...
Tools/msi/buildrelease.bat
View file @
fbc56909
...
@@ -78,7 +78,8 @@ call "%D%..\..\doc\make.bat" htmlhelp
...
@@ -78,7 +78,8 @@ call "%D%..\..\doc\make.bat" htmlhelp
if
errorlevel
1
goto
:eof
if
errorlevel
1
goto
:eof
:skipdoc
:skipdoc
where
hg
/q
||
echo
Cannot
find
Mercurial
on
PATH
&&
exit
/B
1
where
hg
>
"
%TEMP%
\hg.loc"
2
>
nul
&&
set
/P
HG
=
<
"
%TEMP%
\hg.loc"
&
del
"
%TEMP%
\hg.loc"
if
not
exist
"
%HG%
"
echo
Cannot
find
Mercurial
on
PATH
&&
exit
/B
1
where
dlltool
/q
&&
goto
skipdlltoolsearch
where
dlltool
/q
&&
goto
skipdlltoolsearch
set
_DLLTOOL_PATH
=
set
_DLLTOOL_PATH
=
...
@@ -128,6 +129,12 @@ if exist "%BUILD%en-us" (
...
@@ -128,6 +129,12 @@ if exist "%BUILD%en-us" (
if
errorlevel
1
exit
/B
if
errorlevel
1
exit
/B
)
)
if
exist
"
%D%
obj\Debug_
%OBJDIR_PLAT%
"
(
echo
Deleting
"
%D%
obj\Debug_
%OBJDIR_PLAT%
"
rmdir
/q/s
"
%D%
obj\Debug_
%OBJDIR_PLAT%
"
if
errorlevel
1
exit
/B
)
if
exist
"
%D%
obj\Release_
%OBJDIR_PLAT%
"
(
if
exist
"
%D%
obj\Release_
%OBJDIR_PLAT%
"
(
echo
Deleting
"
%D%
obj\Release_
%OBJDIR_PLAT%
"
echo
Deleting
"
%D%
obj\Release_
%OBJDIR_PLAT%
"
rmdir
/q/s
"
%D%
obj\Release_
%OBJDIR_PLAT%
"
rmdir
/q/s
"
%D%
obj\Release_
%OBJDIR_PLAT%
"
...
@@ -145,8 +152,14 @@ if not "%PGO%" EQU "" (
...
@@ -145,8 +152,14 @@ if not "%PGO%" EQU "" (
set
PGOOPTS
=
set
PGOOPTS
=
)
)
if
not
"
%SKIPBUILD%
"
EQU
"1"
(
if
not
"
%SKIPBUILD%
"
EQU
"1"
(
@echo
call
"
%PCBUILD%
build.bat"
-e -p
%BUILD_PLAT%
-t
%TARGET%
%CERTOPTS%
%PGOOPTS%
@echo
call
"
%PCBUILD%
build.bat"
-e -p
%BUILD_PLAT%
-t
%TARGET%
%PGOOPTS%
%CERTOPTS%
@call
"
%PCBUILD%
build.bat"
-e -p
%BUILD_PLAT%
-t
%TARGET%
%CERTOPTS%
%PGOOPTS%
@call
"
%PCBUILD%
build.bat"
-e -p
%BUILD_PLAT%
-t
%TARGET%
%PGOOPTS%
%CERTOPTS%
@if
errorlevel
1
exit
/B
@rem
build
.bat
turns
echo
back
on
,
so
we
disable
it
again
@echo
off
@echo
call
"
%PCBUILD%
build.bat"
-d -e -p
%BUILD_PLAT%
-t
%TARGET%
@call
"
%PCBUILD%
build.bat"
-d -e -p
%BUILD_PLAT%
-t
%TARGET%
@if
errorlevel
1
exit
/B
@if
errorlevel
1
exit
/B
@rem
build
.bat
turns
echo
back
on
,
so
we
disable
it
again
@rem
build
.bat
turns
echo
back
on
,
so
we
disable
it
again
@echo
off
@echo
off
...
...
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