From 1e809f2a193e45803f44d2a25c49653ad729214b Mon Sep 17 00:00:00 2001 From: tkchafin Date: Thu, 6 Jun 2024 13:29:55 +0100 Subject: [PATCH] fix setup.py --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 638b925d..f3d03ea4 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,10 @@ +import os from setuptools import setup, find_packages +directory = os.path.abspath(os.path.dirname(__file__)) +with open(os.path.join(directory, 'version.py'), 'r') as f: + exec(f.read()) + setup( name='resistnet', version=__version__,