]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Simplifies nuget build with better parameters.
authorSteve Dower <steve.dower@microsoft.com>
Sat, 25 Jun 2016 23:13:30 +0000 (16:13 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Sat, 25 Jun 2016 23:13:30 +0000 (16:13 -0700)
Tools/nuget/make_pkg.proj

index 15e6d8f38915ab60bd8cc51051f195801110dcd2..bd3fad8a37f6a2d50a68067c89aa662662d42656 100644 (file)
@@ -6,6 +6,7 @@
         <OutputName Condition="$(Platform) == 'x86'">$(OutputName)x86</OutputName>
         <OutputSuffix></OutputSuffix>
         <SupportSigning>false</SupportSigning>
+        <BuildForRelease Condition="$(BuildForRelease) == ''">true</BuildForRelease>
     </PropertyGroup>
 
     <Import Project="..\msi\msi.props" />
@@ -24,7 +25,7 @@
         <PythonArguments>"$(PythonExe)" "$(MSBuildThisFileDirectory)\..\msi\make_zip.py"</PythonArguments>
         <PythonArguments>$(PythonArguments) -t "$(IntermediateOutputPath)" -a $(ArchName)</PythonArguments>
         
-        <PipArguments>"$(IntermediateOutputPath)\python.exe" -B -c "import sys; sys.path.append('$(PySourcePath)\Lib'); import ensurepip; ensurepip._main()"</PipArguments>
+        <PipArguments>"$(IntermediateOutputPath)\python.exe" -B -c "import sys; sys.path.append(r'$(PySourcePath)\Lib'); import ensurepip; ensurepip._main()"</PipArguments>
         
         <NugetArguments>"$(Nuget)" pack "$(MSBuildThisFileDirectory)\$(OutputName).nuspec"</NugetArguments>
         <NugetArguments>$(NugetArguments) -BasePath "$(IntermediateOutputPath)"</NugetArguments>