[Python-checkins] Adds nuget symbols package for daily builds. (#3122)
Steve Dower
webhook-mailer at python.org
Thu Aug 17 13:24:20 EDT 2017
https://github.com/python/cpython/commit/f1ff2c4b613ba7acc5d80e67d3c175d8443191b1
commit: f1ff2c4b613ba7acc5d80e67d3c175d8443191b1
branch: master
author: Steve Dower <steve.dower at microsoft.com>
committer: GitHub <noreply at github.com>
date: 2017-08-17T10:24:18-07:00
summary:
Adds nuget symbols package for daily builds. (#3122)
files:
A Tools/nuget/pythondaily.symbols.nuspec
M Tools/nuget/make_pkg.proj
diff --git a/Tools/nuget/make_pkg.proj b/Tools/nuget/make_pkg.proj
index 3750d8dcc86..f21d21ee693 100644
--- a/Tools/nuget/make_pkg.proj
+++ b/Tools/nuget/make_pkg.proj
@@ -30,8 +30,8 @@
<PipArguments>"$(IntermediateOutputPath)\python.exe" -B -c "import sys; sys.path.append(r'$(PySourcePath)\Lib'); import ensurepip; ensurepip._main()"</PipArguments>
<PackageArguments Condition="$(Packages) != ''">"$(IntermediateOutputPath)\python.exe" -B -m pip install -U $(Packages)</PackageArguments>
- <NugetArguments>"$(Nuget)" pack "$(MSBuildThisFileDirectory)\$(OutputName).nuspec"</NugetArguments>
- <NugetArguments>$(NugetArguments) -BasePath "$(IntermediateOutputPath)"</NugetArguments>
+ <NugetPackCommand>"$(Nuget)" pack "$(MSBuildThisFileDirectory)\$(OutputName).nuspec" -BasePath "$(IntermediateOutputPath)"</NugetPackCommand>
+ <NugetPackSymbolsCommand Condition="Exists('$(MSBuildThisFileDirectory)\$(OutputName).symbols.nuspec')">"$(Nuget)" pack "$(MSBuildThisFileDirectory)\$(OutputName).symbols.nuspec" -BasePath "$(BuildPath.TrimEnd(`\`))"</NugetPackSymbolsCommand>
<NugetArguments>$(NugetArguments) -OutputDirectory "$(OutputPath.Trim(`\`))"</NugetArguments>
<NugetArguments>$(NugetArguments) -Version "$(NuspecVersion)"</NugetArguments>
<NugetArguments>$(NugetArguments) -NoPackageAnalysis -NonInteractive</NugetArguments>
@@ -51,7 +51,8 @@
<Exec Command="setlocal%0D%0A$(Environment)%0D%0A$(PythonArguments)" />
<Exec Command="$(PipArguments)" />
<Exec Command="$(PackageArguments)" Condition="$(PackageArguments) != ''" />
- <Exec Command="$(NugetArguments)" />
+ <Exec Command="$(NugetPackCommand) $(NugetArguments)" />
+ <Exec Command="$(NugetPackSymbolsCommand) $(NugetArguments)" Condition="$(NugetPackSymbolsCommand) != ''" />
</Target>
<Target Name="AfterBuild" />
diff --git a/Tools/nuget/pythondaily.symbols.nuspec b/Tools/nuget/pythondaily.symbols.nuspec
new file mode 100644
index 00000000000..77792b8c24d
--- /dev/null
+++ b/Tools/nuget/pythondaily.symbols.nuspec
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<package >
+ <metadata>
+ <id>pythondaily.symbols</id>
+ <title>Python (Daily build)</title>
+ <version>0.0.0.0</version>
+ <authors>Python Software Foundation</authors>
+ <licenseUrl>https://docs.python.org/3/license.html</licenseUrl>
+ <projectUrl>https://www.python.org/</projectUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>Contains symbols for the daily build of Python.</description>
+ <iconUrl>https://www.python.org/static/favicon.ico</iconUrl>
+ <tags>python</tags>
+ </metadata>
+ <files>
+ <file src="python*.dll" target="tools" exclude="*_d*" />
+ <file src="python*.exe" target="tools" exclude="*_d*" />
+ <file src="python*.pdb" target="tools" exclude="*_d*" />
+ <file src="*.pdb" target="tools\DLLs" exclude="python*;*_test*;xx*;_freeze*;*_d*;py.*;pyw.*;pyshellext.*" />
+ <file src="*.pyd" target="tools\DLLs" exclude="python*;*_test*;xx*;_freeze*;*_d*;py.*;pyw.*;pyshellext.*" />
+ <file src="libeay32.dll;ssleay32.dll;sqlite3.dll" target="tools\DLLs" />
+ <file src="libeay32.pdb;ssleay32.pdb;sqlite3.pdb" target="tools\DLLs" />
+ </files>
+</package>
More information about the Python-checkins
mailing list