Skip to content

Commit f82d963

Browse files
committed
Changed advice to run 'python setup.py configure'
Python.Runtime.csproj includes all interopXX.cs files
1 parent 8f66882 commit f82d963

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/runtime/Python.Runtime.csproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@
1919
<DefineConstants>$(DefineConstants);$(ConfiguredConstants)</DefineConstants>
2020
</PropertyGroup>
2121

22-
<ItemGroup Condition=" '$(PythonInteropFile)' != '' ">
23-
<Compile Remove="interop*.cs" />
24-
<Compile Include="interop.cs" />
25-
<Compile Include="$(PythonInteropFile)" />
26-
</ItemGroup>
27-
2822
<ItemGroup>
2923
<None Remove="resources\clr.py" />
3024
<EmbeddedResource Include="resources\clr.py">

src/runtime/native/ABI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal static void Initialize(Version version, BorrowedReference pyType)
2525
{
2626
var types = thisAssembly.GetTypes().Select(type => type.Name).Where(name => name.StartsWith("TypeOffset"));
2727
string message = $"Searching for {className}, found {string.Join(",", types)}. " +
28-
"If you are building Python.NET from source, make sure you have run 'python setup.py develop' to fill in configured.props";
28+
"If you are building Python.NET from source, make sure you have run 'python setup.py configure' to fill in configured.props";
2929
throw new NotSupportedException($"Python ABI v{version} is not supported: {message}");
3030
}
3131
var typeOffsets = (ITypeOffsets)Activator.CreateInstance(typeOffsetsClass);

0 commit comments

Comments
 (0)