Baunsgaard commented on code in PR #2150: URL: https://github.com/apache/systemds/pull/2150#discussion_r1870050715
########## src/main/python/systemds/__init__.py: ########## @@ -18,10 +18,46 @@ # under the License. # # ------------------------------------------------------------- - +from importlib.metadata import version, PackageNotFoundError from systemds import context from systemds import operator from systemds import examples -from systemds import scuro -__all__ = ["context", "operator", "examples", "scuro"] +__all__ = ["context", "operator", "examples"] + +required_packages = [ + ("torch", "2.5.1"), + ("torchvision", "0.20.1"), + ("librosa", "0.10.2"), + ("opencv-python", "4.10.0.84"), + ("opt-einsum", "3.3.0"), + ("h5py", "3.11.0"), + ("transformers", "4.46.3"), + ("nltk", "3.9.1"), + ("gensim", "4.3.3"), +] + + +def check_package_version(package_name, required_version): + try: + return version(package_name) >= required_version Review Comment: i see, missed it was greater than, LGTM -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@systemds.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org