add option for interpreter optimization level

This commit is contained in:
2025-04-17 13:52:32 +02:00
parent be4ab681a4
commit 80eea91542
4 changed files with 27 additions and 14 deletions

View File

@@ -93,7 +93,7 @@ namespace dopt.DeltaBarth
/// </summary>
/// <param name="runtimePath">Der Pfad zur Python-Runtime. Dieser muss zu dem Ordner zeigen,
/// in welchem die Runtime in Form eines Ordners mit dem Namen "python" abliegt.</param>
public Plugin(string runtimePath) : base(runtimePath: runtimePath, verbose: false)
public Plugin(string runtimePath) : base(SharpPython.PyOptimLevels.O, runtimePath: runtimePath, verbose: false)
{
base.Initialise();
using (Py.GIL())

View File

@@ -6,12 +6,12 @@
<Nullable>enable</Nullable>
<PlatformTarget>x64</PlatformTarget>
<Platforms>x64</Platforms>
<Version>0.3.3-dev1</Version>
<Version>0.3.3</Version>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="dopt.SharpPython" Version="0.4.0" />
<PackageReference Include="dopt.SharpPython" Version="0.4.1" />
</ItemGroup>
</Project>