setup: make sure we use the imported module
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 28 Mar 2016 00:50:36 -0700
changeset 1929 99f983e8e18f
parent 1928 be0bc9dcb930
child 1930 b82769fd703b
setup: make sure we use the imported module This prevent pyflakes to complains about it (and work around any possible demand import magic. I'm not sure why we do this important dance at all, but I'm leaving it there in doubt.
setup.py
--- a/setup.py	Mon Mar 21 21:38:56 2016 -0700
+++ b/setup.py	Mon Mar 28 00:50:36 2016 -0700
@@ -3,6 +3,7 @@
 requires = []
 try:
     import mercurial
+    mercurial.__all__
 except ImportError:
     requires.append('mercurial')