Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
filmor opened this issue Apr 9, 2022 · 2 comments
Closed
Milestone

Comments

@filmor
Copy link
Member

filmor commented Apr 9, 2022

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.

@filmor filmor added this to the 3.0.0 milestone Apr 9, 2022
@lostmsu
Copy link
Member

lostmsu commented May 4, 2022

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.

@filmor
Copy link
Member Author

filmor commented May 4, 2022

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants