Commits

Martin von Löwis  committed 3b5ac62

Suppress distutils warning about unsupported options.

  • Participants
  • Parent commits 7ae89f7

Comments (0)

Files changed (1)

 # -*- coding: utf-8 -*-
 try:
     from setuptools import setup
+    is_setuptools = True
 except ImportError:
     from distutils.core import setup
+    is_setuptools = False
+
+extra_args = {}
+if is_setuptools:
+    extra_args['install_requires'] = ['BeautifulSoup']
 
 setup(name='openid2rp',
       version='1.1.1',
       author_email='martin@v.loewis.de',
       long_description=open('README').read(),
       py_modules=['openid2rp'],
-      install_requires=['BeautifulSoup']
+      **extra_args
       )