Skip to content

Ability to find pythonnet version at runtime / define __version__ #1909

Description

@amueller

Details

  • I would like to be able to find out which version of pythonnet is installed in a particular runtime environment from the python side. Most packages define a package.__version__ for that purpose. I couldn't find anything like that in pythonnet.

I tried

    print(pythonnet.__version__)
    print([v for v in dir(pythonnet) if "version" in v])

I checked on pythonnet==3.0.0rc4.

Activity

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