Commits

Armin Rigo committed c2539e8

Hack to support, on top of CPython, older versions of pycparser

Comments (0)

Files changed (1)

testing/test_zintegration.py

             modules = ('cffi', '_cffi_backend')
         except ImportError:
             modules = ('cffi', '_cffi_backend', 'pycparser')
+            try:
+                import ply
+            except ImportError:
+                pass
+            else:
+                modules += ('ply',)   # needed for older versions of pycparser
         for module in modules:
             target = imp.find_module(module)[1]
             os.symlink(target, os.path.join(site_packages,