hghave: add check for bdist_mpkg stable
authorAugie Fackler <augie@google.com>
Mon, 18 Apr 2016 23:55:58 -0400
branchstable
changeset 29022 d78e00e4be7c
parent 29021 92d37fb3f1aa
child 29023 e2a553ae1edc
hghave: add check for bdist_mpkg
tests/hghave.py
--- a/tests/hghave.py	Wed Apr 27 22:45:52 2016 -0400
+++ b/tests/hghave.py	Mon Apr 18 23:55:58 2016 -0400
@@ -456,6 +456,14 @@
 def has_osx():
     return sys.platform == 'darwin'
 
+@check("bdistmpkg", "bdist_mpkg Python Package")
+def has_bdistmpkg():
+    try:
+        import bdist_mpkg.script_bdist_mpkg
+        return True
+    except ImportError:
+        return False
+
 @check("docker", "docker support")
 def has_docker():
     pat = r'A self-sufficient runtime for'