From 34503f135c853c8ae8a56bf478cc5d5508837b75 Mon Sep 17 00:00:00 2001 From: Torsten Marek Date: Sat, 8 Nov 2014 23:58:19 +0100 Subject: Do not import the astroid package when running setup, evaluate __pkginfo__ directly. --- setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index bd5be283..d356110b 100644 --- a/setup.py +++ b/setup.py @@ -19,9 +19,11 @@ # with astroid. If not, see . """Setup script for astroid.""" from setuptools import setup, find_packages -from astroid import __pkginfo__ -from astroid.__pkginfo__ import modname, version, license, description, \ - web, author, author_email, distname, install_requires, classifiers + +pkginfo = 'astroid/__pkginfo__.py' + +with open(pkginfo, 'rb') as fobj: + exec(compile(fobj.read(), pkginfo, 'exec'), locals()) with open('README') as fobj: long_description = fobj.read() -- cgit v1.2.1