diff options
author | Georg Brandl <georg@python.org> | 2014-01-09 17:28:59 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-01-09 17:28:59 +0100 |
commit | 5e18204f68d92d3926ea43b85bccc49dc3ab57d1 (patch) | |
tree | e8c9b843259df6eaab51647012a32f3d9a3140dc /setup.py | |
parent | f18a03187c7ddaec0330ece20bbfef1b116f31ac (diff) | |
parent | e6aa1888047f589f1f57e417702ed01683869214 (diff) | |
download | pygments-5e18204f68d92d3926ea43b85bccc49dc3ab57d1.tar.gz |
Merged in thomasvandoren/pygments-main (pull request #256)
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 28 |
1 files changed, 17 insertions, 11 deletions
@@ -31,16 +31,22 @@ try: from setuptools import setup, find_packages have_setuptools = True except ImportError: - from distutils.core import setup - def find_packages(): - return [ - 'pygments', - 'pygments.lexers', - 'pygments.formatters', - 'pygments.styles', - 'pygments.filters', - ] - have_setuptools = False + try: + import ez_setup + ez_setup.use_setuptools() + from setuptools import setup, find_packages + have_setuptools = True + except ImportError: + from distutils.core import setup + def find_packages(*args, **kwargs): + return [ + 'pygments', + 'pygments.lexers', + 'pygments.formatters', + 'pygments.styles', + 'pygments.filters', + ] + have_setuptools = False try: from distutils.command.build_py import build_py_2to3 as build_py @@ -68,7 +74,7 @@ setup( description = 'Pygments is a syntax highlighting package written in Python.', long_description = __doc__, keywords = 'syntax highlighting', - packages = find_packages(), + packages = find_packages(exclude=['ez_setup']), platforms = 'any', zip_safe = False, include_package_data = True, |