From 3c2f0c638bd368bf2b94fbd81b65bdb2a95e264c Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Fri, 20 Sep 2024 21:35:30 +0200 Subject: [PATCH] Import was failing, try something else --- eessi/testsuite/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eessi/testsuite/__init__.py b/eessi/testsuite/__init__.py index 5b4ac640..3af390c7 100644 --- a/eessi/testsuite/__init__.py +++ b/eessi/testsuite/__init__.py @@ -1,7 +1,8 @@ from importlib.metadata import version, PackageNotFoundError # If this is an installed package, setuptools_scm should have written the file _version.py in the current directory try: - from . import _version + print("try importing version") + from _version import __version__ except ImportError: # Fallback for when the package is not installed, but git cloned. Note that this requires setuptools_scm to be # available as a runtime dependency