changeset 29022:d78e00e4be7c stable

hghave: add check for bdist_mpkg
author Augie Fackler <augie@google.com>
date Mon, 18 Apr 2016 23:55:58 -0400
parents 92d37fb3f1aa
children e2a553ae1edc
files tests/hghave.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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'