Mercurial > hg
changeset 29395:4c8026babe8c
import-checker: ensure cffi is always a system module
I've had reports that this is not always happening, so whitelist it
the way we whitelist other problem cases.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Thu, 23 Jun 2016 20:45:37 -0400 |
parents | 6d96658a22b0 |
children | d0ae5b8f80dc |
files | contrib/import-checker.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/import-checker.py Thu Jun 23 18:21:25 2016 +0100 +++ b/contrib/import-checker.py Thu Jun 23 20:45:37 2016 -0400 @@ -186,6 +186,9 @@ >>> 'cStringIO' in mods True + + >>> 'cffi' in mods + True """ for m in sys.builtin_module_names: yield m @@ -198,6 +201,8 @@ yield m for m in 'cPickle', 'datetime': # in Python (not C) on PyPy yield m + for m in ['cffi']: + yield m stdlib_prefixes = set([sys.prefix, sys.exec_prefix]) # We need to supplement the list of prefixes for the search to work # when run from within a virtualenv.