From fba01994027eada25d1d7606c6042030db894d7b Mon Sep 17 00:00:00 2001 From: Robin Andersson Date: Thu, 30 Nov 2023 15:31:04 +0100 Subject: [PATCH] [HWORKS-802] Python 3.12 support for clients (#186) --- python/setup.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/python/setup.py b/python/setup.py index 6a91dd59e..8ab9541a4 100644 --- a/python/setup.py +++ b/python/setup.py @@ -1,11 +1,13 @@ import os -import imp +from importlib.machinery import SourceFileLoader from setuptools import setup, find_packages -__version__ = imp.load_source( - "hopsworks.version", os.path.join("hopsworks", "version.py") -).__version__ +__version__ = ( + SourceFileLoader("hopsworks.version", os.path.join("hopsworks", "version.py")) + .load_module() + .__version__ +) def read(fname):