Skip to content

Version of solver in Python interface #271

@ThomSerg

Description

@ThomSerg

For CPMpy's interface to pumpkin-solver-py, we'd like to report the version of the backend solver in use. We can get the version of the python wrapper, which is synced to the pumpkin-solver-py rust package (through dynamic = ["version"] in the package.toml).
E.g.

try:
    return pkg_resources.get_distribution('pumpkin-solver-py').version 
except pkg_resources.DistributionNotFound:
    return None

Would it be possible to also expose the version of the actual solver package pumpkin-solver?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions