From 2765e3717306362e11dced445c1b32ee15c484bf Mon Sep 17 00:00:00 2001 From: jaycedowell Date: Thu, 7 Dec 2023 07:32:39 -0700 Subject: [PATCH] Is it a path problem? --- python/setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/setup.py b/python/setup.py index 5e766ca05..83db12ba1 100755 --- a/python/setup.py +++ b/python/setup.py @@ -47,7 +47,7 @@ subprocess.check_call(['make', '-C', '..', 'install']) # Parse version file to extract __version__ value -bifrost_version_file = 'bifrost/version/__init__.py' +bifrost_version_file = os.path.join(os.path.dirname(__file__), 'bifrost/version/__init__.py') try: with open(bifrost_version_file, 'r') as version_file: for line in version_file: @@ -66,8 +66,6 @@ print("generate", bifrost_version_file) print("*************************************************************************") raise -print(f"Version is {__version__}") -raise RuntimeError(f"Version is {__version__}") # Build the PyPy3 compatibility module, if needed modules = []