[PATCH 1 of 7 v3 stable osx-packaging] hghave: add check for bdist_mpkg

Kevin Bullock kbullock+mercurial at ringworld.org
Fri Apr 29 19:17:04 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 1a879471e08e074a2a93ab5697c63089664a7950
# Parent  92d37fb3f1aab01b6d353c1c7a5f8228179f774b
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