File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,12 @@ internal static void Initialize(Version version, BorrowedReference pyType)
2222 thisAssembly . GetType ( nativeTypeOffsetClassName , throwOnError : false )
2323 ?? thisAssembly . GetType ( className , throwOnError : false ) ;
2424 if ( typeOffsetsClass is null )
25- throw new NotSupportedException ( $ "Python ABI v{ version } is not supported") ;
25+ {
26+ var types = thisAssembly . GetTypes ( ) . Select ( type => type . Name ) . Where ( name => name . StartsWith ( "TypeOffset" ) ) ;
27+ 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" ;
29+ throw new NotSupportedException ( $ "Python ABI v{ version } is not supported: { message } ") ;
30+ }
2631 var typeOffsets = ( ITypeOffsets ) Activator . CreateInstance ( typeOffsetsClass ) ;
2732 TypeOffset . Use ( typeOffsets ) ;
2833
You can’t perform that action at this time.
0 commit comments