From d0bda7bb8595770287189b4e05d61ac0d3236d23 Mon Sep 17 00:00:00 2001 From: Rory Barnes Date: Wed, 4 Sep 2024 16:56:16 -0700 Subject: [PATCH] Changed setup.py to provide a more robust location for the file VERSION. Hopefully this helps other packages install more easily. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bd5e7c596..5962f534b 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,8 @@ from setuptools.command.develop import develop # Read current code version -VersionPath = os.path.join(os.path.abspath("."), "VERSION") +VersionPath = os.path.join(os.path.abspath(os.path.dirname(__file__)), "VERSION") +print(VersionPath) VERSION = open(VersionPath, "r").read().split("\n")[0].strip()