From: Oleg Broytman Date: Sun, 4 Feb 2018 06:22:51 +0000 (+0300) Subject: Build: Use module returned by imp.load_source() directly X-Git-Tag: 0.7.0~19 X-Git-Url: https://git.phdru.name/?p=ppu.git;a=commitdiff_plain;h=63c535d7c6b151c210e344dd4b745407f3911d76 Build: Use module returned by imp.load_source() directly --- 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',