Commits

Anonymous committed 906101f

added setuptools support so that we can run tests

Comments (0)

Files changed (1)

 import glob
 import os
 import shutil
-from distutils.core import setup
+try:
+    # we don't want to depend on setuptools
+    # please don't use any setuptools specific API
+    from setuptools import setup
+    extra_kwargs = dict(
+        test_suite='ropetest',
+    )
+except ImportError:
+    from distutils.core import setup
 
 import rope
 
                     'rope.refactor.importutils', 'rope.contrib'],
           package_data={'rope': ['docs/*.txt']},
           license='GNU GPL',
-          classifiers=classifiers)
+          classifiers=classifiers,
+          **extra_kwargs)
 finally:
     remove_temps()