mercurial/policy.py
changeset 32251 a04f5c651e52
parent 32210 56148133ef36
child 32366 8e0327dae3f4
equal deleted inserted replaced
32250:8a137ef6e5da 32251:a04f5c651e52
    16 #    allow - allow pure Python implementation when C loading fails
    16 #    allow - allow pure Python implementation when C loading fails
    17 #    cffi - required cffi versions (implemented within pure module)
    17 #    cffi - required cffi versions (implemented within pure module)
    18 #    cffi-allow - allow pure Python implementation if cffi version is missing
    18 #    cffi-allow - allow pure Python implementation if cffi version is missing
    19 #    py - only load pure Python modules
    19 #    py - only load pure Python modules
    20 #
    20 #
    21 # By default, require the C extensions for performance reasons.
    21 # By default, fall back to the pure modules so the in-place build can
    22 policy = b'c'
    22 # run without recompiling the C extensions. This will be overridden by
       
    23 # __modulepolicy__ generated by setup.py.
       
    24 policy = b'allow'
    23 policynoc = (b'cffi', b'cffi-allow', b'py')
    25 policynoc = (b'cffi', b'cffi-allow', b'py')
    24 policynocffi = (b'c', b'py')
    26 policynocffi = (b'c', b'py')
    25 
    27 
    26 try:
    28 try:
    27     from . import __modulepolicy__
    29     from . import __modulepolicy__