From c9ec2f63b5cb0122e9544f485a60a4cbb12209bc Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Wed, 1 Dec 2021 16:14:29 +0200 Subject: [PATCH] Try moving the import from src under the script condition --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index f43f3d58..73c11e10 100644 --- a/setup.py +++ b/setup.py @@ -9,8 +9,6 @@ from importlib import import_module from setuptools import setup, Extension from setuptools.command.install import install -from src.version import softwareVersion - EXTRAS_REQUIRE = { 'docs': ['sphinx', 'sphinx_rtd_theme'], @@ -49,6 +47,8 @@ class InstallCmd(install): if __name__ == "__main__": + from src.version import softwareVersion + here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.md')) as f: README = f.read()