Mercurial > hg
comparison mercurial/policy.py @ 32251:a04f5c651e52
policy: relax the default for in-place build
We're going to make the 'c' policy more strict, where no missing attribute
will be allowed. Since we want to run 'hg bisect' without rebuilding the C
extension modules, we'll need a looser policy for development environment.
The default for system installation isn't changed.
Note that the current 'c' policy is practically 'allow'-ish as we have lots
of adhoc fallbacks to pure functions.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 26 Apr 2017 23:02:43 +0900 |
parents | 56148133ef36 |
children | 8e0327dae3f4 |
comparison
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__ |