Relatively new, scripts can define dependency metadata now adays to achieve that to some degree. Any pip style versioning including an exact match works there.
https://packaging.python.org/en/latest/specifications/inline...