Skip to content

Conversation

@christinadionysio
Copy link
Contributor

This patch checks if the dependent packages for Scuro including their correct versions are installed and otherwise skips importing Scuro.

@Baunsgaard
Copy link
Contributor

I like it, to make it even better can we make the requirements open ended, such that if someone has newer versions installed it is also valid?

@christinadionysio
Copy link
Contributor Author

I like it, to make it even better can we make the requirements open ended, such that if someone has newer versions installed it is also valid?

Sure, that's why I check if the installed version is >= the specified version.


def check_package_version(package_name, required_version):
try:
return version(package_name) >= required_version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see, missed it was greater than,

LGTM

@Baunsgaard Baunsgaard closed this in a487be0 Dec 4, 2024
@Baunsgaard
Copy link
Contributor

Thanks for the commit, It is now merged.

fietenoer pushed a commit to fietenoer/systemds that referenced this pull request Dec 5, 2024
This commits refine the __init__.py file for systemds, to conditionally
load the Scuro library. Previeously, more packages would have to be installed
to run SystemDS via the Python API. Now it is more lean with an informative
warning listing the required packages if Scuro is required.

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants