Commits

Anonymous committed f1690f5

setup.py: declare dependencies, zip_safe flag and ropevim.vim data file

  • Participants
  • Parent commits 6771e7f

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']
+    extra_kwargs['zip_safe'] = False
+except ImportError:
+    from distutils.core import setup
 
 
 classifiers=[
     return '\n' + '\n'.join(lines[:end]) + '\n'
 
 setup(name='ropevim',
-      version='0.3',
+      version='0.3-rc',
       description='A vim plugin for using rope python refactoring library',
       long_description=get_long_description(),
-      packages=['ropemode'],
       py_modules=['ropevim'],
       author='Ali Gholami Rudi',
       author_email='aligrudi@users.sourceforge.net',
       url='http://rope.sf.net/ropevim.html',
       license='GNU GPL',
-      classifiers=classifiers)
+      classifiers=classifiers,
+      requires=['ropemode'],
+      data_files=[('.', ['ropevim.vim'])],
+      **extra_kwargs
+)