Skip to content

Feature request : specify python lib at runtime for coreclr #804

@fradav

Description

@fradav

Environment

  • Pythonnet version: 2.4.0
  • Python version: 3.6
  • Operating System: Windows/Linux

Details

  • Describe what you were trying to get done.

My use case is using Python.Runtime from c#/f#, I use generated nuget packages from visual studio.
I got one on my Windows developper machine and I have to make another for deploying to docker/linux, which is painful.
Problem is that for each platform I have to switch the target (ReleaseMonoPY3 and ReleaseWindowsPy3 for example). Currently I have to manage several .nupkg by hand with absolutely no way to distinguish between them (there are all Python.Runtime 2.4.0/netstandard, not platform tagging)

Ideally, I would like to have python lib runtime library and os specified and/or detectable at runtime.
something like

if (linux)
   PythonEngine.PythonLib <- "/usr/lib/libpython.3.6m"
else 
  PythonEngine.PythonLib <- "python36.dll"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions