comparison tests/hghave.py @ 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 aa927b0a5b87
children 80f15aa32edd
comparison
equal deleted inserted replaced
29021:92d37fb3f1aa 29022:d78e00e4be7c
453 return sys.platform.startswith("aix") 453 return sys.platform.startswith("aix")
454 454
455 @check("osx", "OS X") 455 @check("osx", "OS X")
456 def has_osx(): 456 def has_osx():
457 return sys.platform == 'darwin' 457 return sys.platform == 'darwin'
458
459 @check("bdistmpkg", "bdist_mpkg Python Package")
460 def has_bdistmpkg():
461 try:
462 import bdist_mpkg.script_bdist_mpkg
463 return True
464 except ImportError:
465 return False
458 466
459 @check("docker", "docker support") 467 @check("docker", "docker support")
460 def has_docker(): 468 def has_docker():
461 pat = r'A self-sufficient runtime for' 469 pat = r'A self-sufficient runtime for'
462 if matchoutput('docker --help', pat): 470 if matchoutput('docker --help', pat):