Skip to content

Allow configuring the clr-loader runtime to use via environment variables #1759

Closed

Description

@filmor

Configuring the runtime has essentially three common cases:

  1. .NET Framework
  2. Mono with a globally accessible libmono.so
  3. .NET Core

To make this easier to use (and hide clr_loader a bit), I propose that we introduce a new environment variable PYTHONNET_RUNTIME that configures what happens if one just imports clr, and a corresponding pythonnet.configure function with some simple parameters.

Activity

  1. added this to the 3.0.0 milestone on Apr 9, 2022
  2. lostmsu commented on May 4, 2022

    @lostmsu
    Member

    Since this is not a breaking change, does 3.0.0 need to depend on it? The embedding instructions for the current verbose method are still needed unless you want to deprecate it.

  3. filmor commented on May 4, 2022

    @filmor
    MemberAuthor

    It's not something that should prevent us from releasing RC1. I'll try to prepare a PR for today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions