[setup] fix CWDevelop to keep compat with python 2.7
authorDavid Douard <david.douard@logilab.fr>
Wed, 02 Nov 2016 11:11:01 +0100
changeset 11752 8c45f52b76e4
parent 11751 b57b76091481
child 11753 cf24ccbc7b83
[setup] fix CWDevelop to keep compat with python 2.7 in Python, 2.7, setuptools.command.develop.develop is an old style class, thus it cannot be called with super.
setup.py
--- a/setup.py	Wed Oct 26 08:34:34 2016 +0200
+++ b/setup.py	Wed Nov 02 11:11:01 2016 +0100
@@ -170,7 +170,7 @@
         cubespath = join(sys.prefix, 'share', 'cubicweb', 'cubes')
         self.warn('develop command does not install (legacy) cubes directory (%s)'
                   % cubespath)
-        return super(CWDevelop, self).run()
+        return develop.develop.run(self)
 
 
 # re-enable copying data files in sys.prefix