[PATCH 1 of 5 stable osx-packaging v2] hghave: add check for bdist_mpkg

Augie Fackler raf at durin42.com
Wed Apr 27 15:45:51 UTC 2016


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1461038158 14400
#      Mon Apr 18 23:55:58 2016 -0400
# Branch stable
# Node ID 1d2e15aa68f73659a3f45907e2e035c5a3dc053b
# Parent  87d4a6c5567e81386b8c2209d95060d5bf72e064
hghave: add check for bdist_mpkg

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -456,6 +456,14 @@ def has_aix():
 def has_osx():
     return sys.platform == 'darwin'
 
+ at 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'


More information about the Mercurial-devel mailing list