From: Chris Martinez Date: Fri, 3 Apr 2020 20:03:54 +0000 (-0700) Subject: bpo-40158: Fix CPython MSBuild Properties in NuGet Package (GH-19343) X-Git-Tag: v3.9.0a6~197 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e623ff9d251e0ce86e9b18a01bfd6f067079d7a;p=thirdparty%2FPython%2Fcpython.git bpo-40158: Fix CPython MSBuild Properties in NuGet Package (GH-19343) Fix default Python home path relative to the NuGet package --- diff --git a/Misc/NEWS.d/next/Build/2020-04-03-17-54-33.bpo-40158.MWUTs4.rst b/Misc/NEWS.d/next/Build/2020-04-03-17-54-33.bpo-40158.MWUTs4.rst new file mode 100644 index 000000000000..a81548c3f9cd --- /dev/null +++ b/Misc/NEWS.d/next/Build/2020-04-03-17-54-33.bpo-40158.MWUTs4.rst @@ -0,0 +1 @@ +Fix CPython MSBuild Properties in NuGet Package (build/native/python.props) \ No newline at end of file diff --git a/PC/layout/support/props.py b/PC/layout/support/props.py index b1560b524476..1eb9b7c06da5 100644 --- a/PC/layout/support/props.py +++ b/PC/layout/support/props.py @@ -29,8 +29,7 @@ PROPS_DATA["PYTHON_TARGET"] = "_GetPythonRuntimeFilesDependsOn{}{}_{}".format( PROPS_TEMPLATE = r""" - $([msbuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), "python_d.exe") - $([msbuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), "python.exe") + $([System.IO.Path]::GetFullPath("$(MSBuildThisFileDirectory)\..\..\tools")) $(PythonHome)\include $(PythonHome)\libs {PYTHON_TAG}