mirror of
https://github.com/python/cpython.git
synced 2025-07-27 13:14:41 +00:00

Remove the distutils package. It was deprecated in Python 3.10 by PEP 632 "Deprecate distutils module". For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils. * Remove Lib/distutils/ directory * Remove test_distutils * Remove references to distutils * Skip test_check_c_globals and test_peg_generator since they use distutils
54 lines
2.8 KiB
XML
54 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup Condition="$(Platform) == '$$PYTHON_PLATFORM$$'">
|
|
<PythonHome>$(MSBuildThisFileDirectory)\..\..\tools</PythonHome>
|
|
<PythonInclude>$(PythonHome)\include</PythonInclude>
|
|
<PythonLibs>$(PythonHome)\libs</PythonLibs>
|
|
<PythonTag>$$PYTHON_TAG$$</PythonTag>
|
|
<PythonVersion>$$PYTHON_VERSION$$</PythonVersion>
|
|
|
|
<IncludePythonExe Condition="$(IncludePythonExe) == ''">true</IncludePythonExe>
|
|
<IncludeLib2To3 Condition="$(IncludeLib2To3) == ''">false</IncludeLib2To3>
|
|
<IncludeVEnv Condition="$(IncludeVEnv) == ''">false</IncludeVEnv>
|
|
|
|
<GetPythonRuntimeFilesDependsOn>$$PYTHON_TARGET$$;$(GetPythonRuntimeFilesDependsOn)</GetPythonRuntimeFilesDependsOn>
|
|
</PropertyGroup>
|
|
|
|
<ItemDefinitionGroup Condition="$(Platform) == '$$PYTHON_PLATFORM$$'">
|
|
<ClCompile>
|
|
<AdditionalIncludeDirectories>$(PythonInclude);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
|
</ClCompile>
|
|
<Link>
|
|
<AdditionalLibraryDirectories>$(PythonLibs);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
|
|
<Target Name="GetPythonRuntimeFiles" Returns="@(PythonRuntime)" DependsOnTargets="$(GetPythonRuntimeFilesDependsOn)" />
|
|
|
|
<Target Name="$$PYTHON_TARGET$$" Returns="@(PythonRuntime)">
|
|
<ItemGroup>
|
|
<_PythonRuntimeExe Include="$(PythonHome)\python*.dll" />
|
|
<_PythonRuntimeExe Include="$(PythonHome)\vcruntime140.dll" />
|
|
<_PythonRuntimeExe Include="$(PythonHome)\python*.exe" Condition="$(IncludePythonExe) == 'true'" />
|
|
<_PythonRuntimeExe>
|
|
<Link>%(Filename)%(Extension)</Link>
|
|
</_PythonRuntimeExe>
|
|
<_PythonRuntimeDlls Include="$(PythonHome)\DLLs\*.pyd" />
|
|
<_PythonRuntimeDlls Include="$(PythonHome)\DLLs\*.dll" />
|
|
<_PythonRuntimeDlls>
|
|
<Link>DLLs\%(Filename)%(Extension)</Link>
|
|
</_PythonRuntimeDlls>
|
|
<_PythonRuntimeLib Include="$(PythonHome)\Lib\**\*" Exclude="$(PythonHome)\Lib\**\*.pyc;$(PythonHome)\Lib\site-packages\**\*" />
|
|
<_PythonRuntimeLib Remove="$(PythonHome)\Lib\lib2to3\**\*" Condition="$(IncludeLib2To3) != 'true'" />
|
|
<_PythonRuntimeLib Remove="$(PythonHome)\Lib\ensurepip\**\*" Condition="$(IncludeVEnv) != 'true'" />
|
|
<_PythonRuntimeLib Remove="$(PythonHome)\Lib\venv\**\*" Condition="$(IncludeVEnv) != 'true'" />
|
|
<_PythonRuntimeLib>
|
|
<Link>Lib\%(RecursiveDir)%(Filename)%(Extension)</Link>
|
|
</_PythonRuntimeLib>
|
|
<PythonRuntime Include="@(_PythonRuntimeExe);@(_PythonRuntimeDlls);@(_PythonRuntimeLib)" />
|
|
</ItemGroup>
|
|
|
|
<Message Importance="low" Text="Collected Python runtime from $(PythonHome):%0D%0A@(PythonRuntime->' %(Link)','%0D%0A')" />
|
|
</Target>
|
|
</Project>
|