summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-11-08 23:58:19 +0100
committerTorsten Marek <shlomme@gmail.com>2014-11-08 23:58:19 +0100
commit34503f135c853c8ae8a56bf478cc5d5508837b75 (patch)
tree617d424ef37c354f1eb294e16dd08355cd387b17
parent477b5ee2a3d0594504ca9fc2fe0f0f9cbeccd01b (diff)
downloadastroid-git-34503f135c853c8ae8a56bf478cc5d5508837b75.tar.gz
Do not import the astroid package when running setup, evaluate __pkginfo__ directly.
-rw-r--r--setup.py8
1 files 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 <http://www.gnu.org/licenses/>.
"""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()