From 63c535d7c6b151c210e344dd4b745407f3911d76 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 4 Feb 2018 09:22:51 +0300 Subject: [PATCH] Build: Use module returned by imp.load_source() directly --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index de4095a..c4d2bfc 100755 --- a/setup.py +++ b/setup.py @@ -15,11 +15,10 @@ if is_setuptools: kw['python_requires'] = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*' versionpath = join(abspath(dirname(__file__)), "ppu", "__version__.py") -load_source("ppu_version", versionpath) -from ppu_version import __version__ # noqa: ignore flake8 E402 +ppu_version = load_source("ppu_version", versionpath) setup(name='ppu', - version=__version__, + version=ppu_version.__version__, description='Broytman Portable Python Utilities', long_description=open('README.rst', 'rU').read(), author='Oleg Broytman', -- 2.39.5