##// END OF EJS Templates
mercurial: don't load C extensions from PyPy...
Gregory Szorc -
r27224:d308a9ca default
parent child Browse files
Show More
@@ -24,6 +24,13 b" modulepolicy = '@MODULELOADPOLICY@'"
24 24 if modulepolicy == '@' 'MODULELOADPOLICY' '@':
25 25 modulepolicy = 'c'
26 26
27 # PyPy doesn't load C extensions.
28 #
29 # The canonical way to do this is to test platform.python_implementation().
30 # But we don't import platform and don't bloat for it here.
31 if '__pypy__' in sys.builtin_module_names:
32 modulepolicy = 'py'
33
27 34 # Environment variable can always force settings.
28 35 modulepolicy = os.environ.get('HGMODULEPOLICY', modulepolicy)
29 36
General Comments 0
You need to be logged in to leave comments. Login now