]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41744: Package python.props with correct name in NuGet package (GH-22154)
authorVáclav Slavík <vaclav@slavik.io>
Mon, 14 Sep 2020 19:30:15 +0000 (21:30 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Sep 2020 19:30:15 +0000 (20:30 +0100)
NuGet automatically includes .props file from the build directory in the
target using the package, but only if the .props file has the correct
name: it must be $(id).props

Rename python.props correspondingly in all the nuspec variants. Also
keep python.props as it were for backward compatibility.

Misc/NEWS.d/next/Windows/2020-09-11-17-59-33.bpo-41744.e_ugDQ.rst [new file with mode: 0644]
Tools/nuget/python.nuspec
Tools/nuget/pythonarm32.nuspec
Tools/nuget/pythondaily.nuspec
Tools/nuget/pythonx86.nuspec

diff --git a/Misc/NEWS.d/next/Windows/2020-09-11-17-59-33.bpo-41744.e_ugDQ.rst b/Misc/NEWS.d/next/Windows/2020-09-11-17-59-33.bpo-41744.e_ugDQ.rst
new file mode 100644 (file)
index 0000000..6106d66
--- /dev/null
@@ -0,0 +1 @@
+Fixes automatic import of props file when using the Nuget package.
\ No newline at end of file
index 8f98e808916a3203f9e018ea7fcee2449088f321..2da5f2037eb23420f507aa662af4a3a2c9ecef4e 100644 (file)
@@ -13,6 +13,6 @@
   </metadata>
   <files>
     <file src="**\*" exclude="python.props" target="tools" />
-    <file src="python.props" target="build\native" />
+    <file src="python.props" target="build\native\python.props" />
   </files>
 </package>
index 273d79a0312bd94b0da41a1598628cb5fee507db..2d197931edb32c3efce2a06917b6dafb1ebd198b 100644 (file)
@@ -14,6 +14,7 @@
   </metadata>
   <files>
     <file src="**\*" exclude="python.props" target="tools" />
-    <file src="python.props" target="build\native" />
+    <file src="python.props" target="build\native\python.props" />
+    <file src="python.props" target="build\native\pythonarm32.props" />
   </files>
 </package>
index 5cf55806ddfb39c413cdf7f6966eea078d14b01c..7df1983f42a6fe203e267dc52715f27acbb0a078 100644 (file)
@@ -13,6 +13,7 @@
   </metadata>
   <files>
     <file src="**\*" exclude="python.props" target="tools" />
-    <file src="python.props" target="build\native" />
+    <file src="python.props" target="build\native\python.props" />
+    <file src="python.props" target="build\native\pythondaily.props" />
   </files>
 </package>
index 27ef67e7f5d3637d6f9a8c007a28c43fc8d9fe3b..ea878ba0bf390b6301d89eaea8653accf3fd3f85 100644 (file)
@@ -13,6 +13,7 @@
   </metadata>
   <files>
     <file src="**\*" exclude="python.props" target="tools" />
-    <file src="python.props" target="build\native" />
+    <file src="python.props" target="build\native\python.props" />
+    <file src="python.props" target="build\native\pythonx86.props" />
   </files>
 </package>