diff options
author | Steve Dower <steve.dower@microsoft.com> | 2017-08-17 17:24:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 17:24:18 (GMT) |
commit | f1ff2c4b613ba7acc5d80e67d3c175d8443191b1 (patch) | |
tree | 8dffb6b7dca03bb394d35e38700e2be0bb694539 /Tools | |
parent | b907abc88589f7bea52c5afe172ececc6edcda70 (diff) | |
download | cpython-f1ff2c4b613ba7acc5d80e67d3c175d8443191b1.zip cpython-f1ff2c4b613ba7acc5d80e67d3c175d8443191b1.tar.gz cpython-f1ff2c4b613ba7acc5d80e67d3c175d8443191b1.tar.bz2 |
Adds nuget symbols package for daily builds. (#3122)
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/nuget/make_pkg.proj | 7 | ||||
-rw-r--r-- | Tools/nuget/pythondaily.symbols.nuspec | 24 |
2 files changed, 28 insertions, 3 deletions
diff --git a/Tools/nuget/make_pkg.proj b/Tools/nuget/make_pkg.proj index 3750d8d..f21d21e 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 0000000..77792b8 --- /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> |