Installing for Python 2.7 fails for me with:

   File "setup.py", line 31, in initialize_options
       super().initialize_options()
  TypeError: super() takes at least 1 argument (0 given)


Python 2 super() requires a type argument and only works for new-style
classes, which setuptools.command.install.install is not.

My fix here:

https://sourceforge.net/p/congruity/code/merge-requests/1/

--- a/setup.py
+++ b/setup.py
@@ -28,11 +28,11 @@
     ]
 
     def initialize_options(self):
-        super().initialize_options()
+        setuptools.command.install.install.initialize_options(self)
         self.skip_update_desktop_db = None
 
     def run(self):
-        super().run()
+        setuptools.command.install.install.run(self)
         if not self.skip_update_desktop_db:
             os.system('update-desktop-database >/dev/null 2>&1')


Appears to work with Python 3.6 also.

Chris

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel

Reply via email to