hghave: add demandimport checking

This commit is contained in:
timeless 2016-08-25 22:30:35 +00:00
parent 1e21e7a9f5
commit eab7889a37

View File

@ -530,6 +530,10 @@ def has_debhelper():
br'other supported Python versions')
return dpkg and dh and dh_py2
@check("demandimport", "demandimport enabled")
def has_demandimport():
return os.environ.get('HGDEMANDIMPORT') != 'disable'
@check("absimport", "absolute_import in __future__")
def has_absimport():
import __future__