From: Benjamin Mako Hill Date: Mon, 9 Apr 2012 22:13:37 +0000 (-0400) Subject: use setuptools if available X-Git-Url: https://projects.mako.cc/source/python-simplemediawiki.debian/commitdiff_plain/b1031465666db28694e2eb69c81d9ce33857f09a?hp=49b148ee4c10fdf671288331217bd4dd0304b8b4 use setuptools if available --- diff --git a/setup.py b/setup.py index 79a2b1e..fb1768e 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,8 @@ -from distutils.core import setup +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + setup(name='simplemediawiki', version='1.0.2', description='Extremely low-level wrapper to the MediaWiki API', @@ -11,7 +15,7 @@ setup(name='simplemediawiki', 'License :: OSI Approved :: GNU Library or Lesser General Public ' 'License (LGPL)', ], - requires=[ + install_requires=[ 'iso8601', ], py_modules=['simplemediawiki'])