Commits

Anonymous committed 7ec8079

setup.py: declare dependency on ropemode package

Comments (0)

Files changed (1)

-from distutils.core import setup
+extra_kwargs = {}
+try:
+    from setuptools import setup
+    extra_kwargs['install_requires'] = ['rope >= 0.9.3', 'ropemode']
+except ImportError:
+    from distutils.core import setup
 
 
 classifiers=[
       version='0.6',
       description='An emacs mode for using rope python refactoring library',
       long_description=get_long_description(),
-      packages=['ropemode', 'ropemacs'],
+      packages=['ropemacs'],
       author='Ali Gholami Rudi',
       author_email='aligrudi@users.sourceforge.net',
       url='http://rope.sf.net/ropemacs.html',
       license='GNU GPL',
-      classifiers=classifiers)
+      classifiers=classifiers,
+      requires=['ropemode'],
+      **extra_kwargs)