setup.py: remove unused and harmful code importing mercurial
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 09 Mar 2017 08:33:00 -0800
changeset 2067 74869d26f0e0
parent 2066 a35f6b1e4a41
child 2068 4b7478433b07
setup.py: remove unused and harmful code importing mercurial This was failing on some build system we have. The import seemed to succeed, but then mercurial.__all__ would fail. I don't know why, but since it's unused anyway, let's just drop it.
setup.py
--- a/setup.py	Wed Mar 08 13:48:35 2017 -0800
+++ b/setup.py	Thu Mar 09 08:33:00 2017 -0800
@@ -30,13 +30,6 @@
     py_modules.append('hgext3rd.evolve.hack.inhibit')
     py_modules.append('hgext3rd.evolve.hack.directaccess')
 
-requires = []
-try:
-    import mercurial
-    mercurial.__all__
-except ImportError:
-    requires.append('mercurial>=%s' % min_hg_version())
-
 setup(
     name='hg-evolve',
     version=get_version(),