Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1ff2c4

Browse files
authored
Adds nuget symbols package for daily builds. (#3122)
1 parent b907abc commit f1ff2c4

2 files changed

Lines changed: 28 additions & 3 deletions

File tree

Tools/nuget/make_pkg.proj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<PipArguments>"$(IntermediateOutputPath)\python.exe" -B -c "import sys; sys.path.append(r'$(PySourcePath)\Lib'); import ensurepip; ensurepip._main()"</PipArguments>
3131
<PackageArguments Condition="$(Packages) != ''">"$(IntermediateOutputPath)\python.exe" -B -m pip install -U $(Packages)</PackageArguments>
3232

33-
<NugetArguments>"$(Nuget)" pack "$(MSBuildThisFileDirectory)\$(OutputName).nuspec"</NugetArguments>
34-
<NugetArguments>$(NugetArguments) -BasePath "$(IntermediateOutputPath)"</NugetArguments>
33+
<NugetPackCommand>"$(Nuget)" pack "$(MSBuildThisFileDirectory)\$(OutputName).nuspec" -BasePath "$(IntermediateOutputPath)"</NugetPackCommand>
34+
<NugetPackSymbolsCommand Condition="Exists('$(MSBuildThisFileDirectory)\$(OutputName).symbols.nuspec')">"$(Nuget)" pack "$(MSBuildThisFileDirectory)\$(OutputName).symbols.nuspec" -BasePath "$(BuildPath.TrimEnd(`\`))"</NugetPackSymbolsCommand>
3535
<NugetArguments>$(NugetArguments) -OutputDirectory "$(OutputPath.Trim(`\`))"</NugetArguments>
3636
<NugetArguments>$(NugetArguments) -Version "$(NuspecVersion)"</NugetArguments>
3737
<NugetArguments>$(NugetArguments) -NoPackageAnalysis -NonInteractive</NugetArguments>
@@ -51,7 +51,8 @@
5151
<Exec Command="setlocal%0D%0A$(Environment)%0D%0A$(PythonArguments)" />
5252
<Exec Command="$(PipArguments)" />
5353
<Exec Command="$(PackageArguments)" Condition="$(PackageArguments) != ''" />
54-
<Exec Command="$(NugetArguments)" />
54+
<Exec Command="$(NugetPackCommand) $(NugetArguments)" />
55+
<Exec Command="$(NugetPackSymbolsCommand) $(NugetArguments)" Condition="$(NugetPackSymbolsCommand) != ''" />
5556
</Target>
5657

5758
<Target Name="AfterBuild" />
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0"?>
2+
<package >
3+
<metadata>
4+
<id>pythondaily.symbols</id>
5+
<title>Python (Daily build)</title>
6+
<version>0.0.0.0</version>
7+
<authors>Python Software Foundation</authors>
8+
<licenseUrl>https://docs.python.org/3/license.html</licenseUrl>
9+
<projectUrl>https://www.python.org/</projectUrl>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
<description>Contains symbols for the daily build of Python.</description>
12+
<iconUrl>https://www.python.org/static/favicon.ico</iconUrl>
13+
<tags>python</tags>
14+
</metadata>
15+
<files>
16+
<file src="python*.dll" target="tools" exclude="*_d*" />
17+
<file src="python*.exe" target="tools" exclude="*_d*" />
18+
<file src="python*.pdb" target="tools" exclude="*_d*" />
19+
<file src="*.pdb" target="tools\DLLs" exclude="python*;*_test*;xx*;_freeze*;*_d*;py.*;pyw.*;pyshellext.*" />
20+
<file src="*.pyd" target="tools\DLLs" exclude="python*;*_test*;xx*;_freeze*;*_d*;py.*;pyw.*;pyshellext.*" />
21+
<file src="libeay32.dll;ssleay32.dll;sqlite3.dll" target="tools\DLLs" />
22+
<file src="libeay32.pdb;ssleay32.pdb;sqlite3.pdb" target="tools\DLLs" />
23+
</files>
24+
</package>

0 commit comments

Comments
 (0)