diff options
| author | Torsten Marek <shlomme@gmail.com> | 2014-11-08 23:58:19 +0100 |
|---|---|---|
| committer | Torsten Marek <shlomme@gmail.com> | 2014-11-08 23:58:19 +0100 |
| commit | 34503f135c853c8ae8a56bf478cc5d5508837b75 (patch) | |
| tree | 617d424ef37c354f1eb294e16dd08355cd387b17 | |
| parent | 477b5ee2a3d0594504ca9fc2fe0f0f9cbeccd01b (diff) | |
| download | astroid-git-34503f135c853c8ae8a56bf478cc5d5508837b75.tar.gz | |
Do not import the astroid package when running setup, evaluate __pkginfo__ directly.
| -rw-r--r-- | setup.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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() |
